Conversation
|
Thanks for your pull request and interest in making D better, @dgileadi! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. |
articles/ctod.dd
Outdated
| To specifiy the file c:\root\file.c you would use: | ||
| $(CCODE | ||
| char file[] = "c:\\root\\file.c"; | ||
| `char file[] = "c:\\root\\file.c";` |
There was a problem hiding this comment.
This will make the font bold. That will result in some code blocks look different from others. Not sure if that matters.
There was a problem hiding this comment.
Once you pointed it out it bothered me enough that I went ahead and used ```c fences for these three items.
PetarKirov
left a comment
There was a problem hiding this comment.
Thanks for taking this closer to the finish line!
In addition to comments below, I also noticed that the output of some files changed like lex.dd, in which the list of escape sequences was now interpreted differently - IIRC from e.g. \n to n. In all those cases, the $(D ...) macro was used, so most likely the fix would be to use code blocks.
| @@ -859,8 +859,8 @@ $(H4 The C Way) | |||
| C initializes arrays by positional dependence. C99 fixes the issue: | |||
| $(CCODE | |||
There was a problem hiding this comment.
Can we used a fenced C code block here?
```C
int a[3] = { 3,2,1 };
/* ... */
```
There was a problem hiding this comment.
Ditto for the rest of the $(CCODE ..) changes.
There was a problem hiding this comment.
We certainly could, although we'd use a lowercase c to work with the existing CSS. The reason I didn't switch them is because I wanted to minimize the amount of changes, and if we change one we'd probably want to change them all.
changelog/2.074.0.dd
Outdated
| $(UL | ||
| $(LI $(LINK2 http://docs.algorithm.dlang.io/latest/mir_ndslice_topology.html, `mir.ndslice.topology`) | ||
| - Multidimensional `std.range` analog. Includes `bitwise`, `bitpack`, `zip`, `unzip`, `map`, `indexed` and many other features.) | ||
| \- Multidimensional `std.range` analog. Includes `bitwise`, `bitpack`, `zip`, `unzip`, `map`, `indexed` and many other features.) |
There was a problem hiding this comment.
Perhaps the dash should be moved to the end of the previous line to avoid escaping it?
| $(P | ||
| $(CONSOLE | ||
| sed "s/delete \(.*\);/__delete(\1);/" -i **/*.d | ||
| `sed "s/delete \(.*\);/__delete(\1);/" -i **/*.d` |
There was a problem hiding this comment.
Perhaps we should replace all uses of $(CONSOLE ...) with something along the lines of:
```console
```
There was a problem hiding this comment.
Again, the reason I didn't make a change like this (and I was tempted to) is to minimize the amount of changes.
| var redir = window.location.href.replace( | ||
| /\/changelog\/index.html#(?:2\.|new2_)(\d+(?:\.\d+)?)$(DOLLAR)/, | ||
| /\\/changelog\\/index.html#(?:2\\.|new2_)(\\d+(?:\\.\\d+)?)$(DOLLAR)/, | ||
| "/changelog/2.$(DOLLAR)1.html" |
There was a problem hiding this comment.
Wow, using inline js with regex inside ddoc files looks like a bad idea. All JS code should be defined in *.js files and included automatically inline if really necessary. That said, this out of the scope of your PR, so I'm fine with leaving it like this.
That worries me because I didn't see that behavior locally. It makes me wonder what else I might have missed. If it isn't too much trouble, could you let me know which files you saw that had issues? |
|
@ZombineDev The documentation tester isn't showing any changes in lex.html, so I'm also confused why you would be seeing a difference in your output. There are changes in |
a3b5a97 to
96f4ab3
Compare
|
Yes, @CyberShadow, you're absolutely right! I must have confused the verbatim vs html diffs. @dgileadi sorry for the false alarm. |
PetarKirov
left a comment
There was a problem hiding this comment.
I did another pass through your latest changes and I also checked the diff of all *.html files and I'm pleasantly surprised at how little has changed in the output. And were it changed I think it was an improvement.
Everything LGTM.
@dgileadi thanks for your outstanding work and persistence!
|
@CyberShadow @aG0aep6G @wilzbach you guys may also want to have a look before we merge this PR. From my PoV it's good to go. |
|
Arghh.. I meant to leave this open for others to review. @CyberShadow if you have any high-level concerns that cannot be easily addressed with a follow-up, feel free to revert this PR, so we can have more time to review. |
|
No concerns, thank you @dgileadi for your work. |
This PR does three things:
-preview=markdownflag to the dlang.org Ddoc build.OTHER_CODEmacro to support future instances of``` some-languagecode fences.The fixes in item 3 were generally for:
-or+, which in Markdown starts a list item.>, which in Markdown starts a quote block.