News for hackers. Stuff that matters.
Re:Welcome Yari: MDN Web Docs has a new platform by caddywompus on Tuesday December 15, 2020 @08:39AM (#25430157)
Really glad to see this project continuing on. I do have concerns about being limited to Markdown syntax though. While Markdown has its place on small to medium sized projects, its simplicity quickly becomes a hindrance, and you end up falling back to html in Markdown. I could see something like ReStructuredText or Asciidoc being a better fit, if not a full blown enterprise style Docbooks or DITA system.

Not a big fan of the logo, it is cool, but doesn't really inspire my inner web documentation. (edit) Actually no, I think its the size and style of the logo. Singling out the top of the spear and using that would be cool, but it reminds me too much of a fighting game character as is.

Re:Welcome Yari: MDN Web Docs has a new platform by 60secz on Tuesday December 15, 2020 @12:37PM (#25432594)
It's sort of meta-defeatism when your resource is literally how to write html and your documentation avoids using it.
Re:Welcome Yari: MDN Web Docs has a new platform by caddywompus on Tuesday December 15, 2020 @01:43PM (#25433459)
Is it? The use of markdown is to prevent having to write out html tags for formatting. And in the end, HTML will be one of the target outputs. Even sites that accept HTML directly, are doing so through the use of a Javascript WYSIWYG editor.
Re:Welcome Yari: MDN Web Docs has a new platform by nathantotten on Tuesday December 15, 2020 @09:24AM (#25430552)
The vast majority of docs.microsoft.com is written in markdown. This project seems be both very easy to contribute as well as produces a great docs site.
Re:Welcome Yari: MDN Web Docs has a new platform by datenarsch on Tuesday December 15, 2020 @12:27PM (#25432487)
MSDN has been around for much longer than Markdown has even existed, so I highly doubt that. Maybe the more recent stuff, which by the way is much much worse from a technical pov than their older technical documentations sadly. Compare the mess that is .NET Core / ASP.NET MVC documentation to the mostly excellent WINAPI documentation...
Re:Welcome Yari: MDN Web Docs has a new platform by hyperrail on Tuesday December 15, 2020 @02:57PM (#25434346)
Most older pages on docs.ms.com have been converted to Markdown, and yes, that includes the Windows C and COM API docs.* Here's the source code for CreateFile's doc page: https://github.com/MicrosoftDocs/sdk-api/blob/docs/sdk-api-s...

Having said that, https://docs.microsoft.com 's flavor of Markdown does allow for embedded HTML, like GitHub's and enough pages still use that feature that the conversion to Markdown is arguably incomplete. It isn't a big issue in practice, however; you can update markup from HTML to Markdown along with your other changes.

* As a recent-past engineer on the Windows team, I have a rather lower opinion of Windows API docs than you. :) The Windows developer platform has not had enough dedicated technical writers for years; our developer content teams are mainly editors of engineer- and PM-written original docs, which can lead to API doc sets with badly written pages, important missing information, or references to Windows-internal developer tools. I tried to channel my frustrations into correcting and extending my coworkers' writings, or into gently asking them to fix their omissions when I didn't have the free time to spend on the needed research.

Re:Welcome Yari: MDN Web Docs has a new platform by caddywompus on Tuesday December 15, 2020 @12:30PM (#25432516)
Interesting, I didn't know that. I'll check it out, since I'd like to see if they add any of their own extensions, in the same way that Github does
Re:Welcome Yari: MDN Web Docs has a new platform by breck on Tuesday December 15, 2020 @11:13AM (#25431589)
I agree about Markdown. It's great for simple stuff, but it's very bespoke and will be limiting.

I'd suggest they start with a toy I made a while back, Dumbdown as a base, and evolve from there: https://jtree.treenotation.org/designer/#standard%20dumbdown

Re:Welcome Yari: MDN Web Docs has a new platform by caddywompus on Tuesday December 15, 2020 @12:32PM (#25432546)
I'd never seen Tree Language designer before, this is a really cool tool! Thanks for the link
Re:Welcome Yari: MDN Web Docs has a new platform by gostsamo on Tuesday December 15, 2020 @08:49AM (#25430248)
They are not settled on markdown, so there is time for changing their mind.
Re:Welcome Yari: MDN Web Docs has a new platform by Karunamon on Tuesday December 15, 2020 @09:38AM (#25430688)
Could you explain what you mean by hindrance? As a developer documentation site, I'm having a hard time thinking of a use case that markdown doesn't support.
Re:Welcome Yari: MDN Web Docs has a new platform by jlokier on Tuesday December 15, 2020 @10:10AM (#25430962)
I'm having a hard time thinking of a developer documentation use case with any substantial structure that Markdown does support well (by itself).

Any form of structured information, for example API functions and their argument types, properties of a class, or tables of historical compatibility, is already stepping outside Markdown.

You're left with either writing everything out in text and having error-prone parsers cross-check pages against each other, or badly cross-referenced information that goes undetected, or using something that is Markdown plus additional markup for semantic data.

Re:Welcome Yari: MDN Web Docs has a new platform by shakna on Tuesday December 15, 2020 @09:53AM (#25430816)
Markdown doesn't come with basic typesetting features that you may want, such as something as basic as centering text.

Other things that are critical features for development documentation, like tables, are extensions which may or may not completely break if you ever change your Markdown renderer.

Re:Welcome Yari: MDN Web Docs has a new platform by chrisfinazzo on Tuesday December 15, 2020 @10:35AM (#25431192)
In reality, I think this concern is overblown.

If you need more typesetting control than what Markdown allows, dropping down to HTML is always an option.

To the second point, while it's possible that content could render differently if you change renderers, I would presume the folks at Mozilla are aware of this and won't do it unless it's absolutely necessary.

Do we actually know which renderer MDN is using? I don't see this mentioned in the post. I would argue that although alternate implementations exist, Gruber's `markdown.pl` is Markdown (whatever it does, warts and all) and deviating from it is generally a bad idea if you can avoid it.

Re:Welcome Yari: MDN Web Docs has a new platform by shakna on Tuesday December 15, 2020 @06:05PM (#25436589)
> If you need more typesetting control than what Markdown allows, dropping down to HTML is always an option.

Is it? In the public setting? HTML comes with things missing from Markdown that you want, sure, but it also comes with a full scripting environment, the ability to arbitrarily inject code and so on.

If you can drop to HTML, you have to have a sanitiser process. So then you're dropping to some-unknown-subset of HTML if the process is automatic - or you've failed to reduce the amount of effort being put on the editors if it's a human one.

Re:Welcome Yari: MDN Web Docs has a new platform by chrisfinazzo on Wednesday December 16, 2020 @09:59AM (#25443278)
> Is it? In the public setting?

For a place like MDN, this really isn't a problem.

> If you can drop to HTML, you have to have a sanitiser process. So then you're dropping to some-unknown-subset of HTML if the process is automatic - or you've failed to reduce the amount of effort being put on the editors if it's a human one.

I presume Kuma had - and Yari will have, if it doesn't already - some way to prevent unsafe injection and other dangerous things.

This isn't to say that the issue doesn't exist. Instead, I would expect it to be the exception rather than the rule. After all, Markdown and its derivatives owe their existence to this very phenomenon.

The language of last resort, if you will.

Re:Welcome Yari: MDN Web Docs has a new platform by caddywompus on Tuesday December 15, 2020 @12:22PM (#25432414)
Well the beauty of Markdown, is that it doesn't specify a lot of functionality, making it easy to understand. But when you have many, many pages of documentation, you will need to start linking them together in meaningful ways.

This is where is becomes useful to have tools that can generalize things. For example, say you link to another page in your documentation repository, in Markdown, you create a link either with an absolute or relative path, specifying the filename and optionally anchor on that page. Now later down the road, you edit the folder hierarchy, or rename a page, you will now need to find all references and update them manually.

Something like ReStructuredText has the "interlink" module, which allows you to modularize your pages, and use symbolic names instead of the relative or absolute path. Now, there are pros and cons to each approach, i.e. if you have a good set of tools, doing a global search and replace across documents can deal with this too. But having the flexibility of things like symbolic names and macros can make things much more manageable.

Of course, this is a double edged sword, in that you can customize, create macros, until you now have a monster in of itself, but that can be said of any tool.

I tend to see Markdown as perfect for standalone documents, and its especially good for formatting internet comments and the likes.

Tools like DocBook and other XML processors attempt to provide the maximum amount flexibility, and the cost of a steep learning cliff and lots of boilerplate, but if implemented well, it can allow things like conditionally including parts of documentation based on tags, or output formats, but definitely requires extensive tooling as opposed to Markdown and other formats that are meant to be readable in their source form.

Re:Welcome Yari: MDN Web Docs has a new platform by woodrowbarlow on Tuesday December 15, 2020 @09:13AM (#25430455)
one of the challenges i see with this logo is that it can only be used vertically, and only quite large. here's a quick mockup of how it would look as a horizontal stack: https://i.imgur.com/S8RtqS2.png

with this arrangement, the character is leaning away from and pointing away from the words, and scaling down the character has made it difficult to make out the details of their pose (is that a hand? is the face empty? etc.).

Re:Welcome Yari: MDN Web Docs has a new platform by nvrspyx on Tuesday December 15, 2020 @09:46AM (#25430750)
Are we sure that's an actual logo meant to be used for anything besides maybe the repo considering it's a representation of "Yari", which is just a codename?

The previous backend was codenamed "Kuma" and was represented with a bear, but wasn't displayed anywhere on the actual MDN platform.

Re:Welcome Yari: MDN Web Docs has a new platform by callahad on Tuesday December 15, 2020 @11:20AM (#25431683)
MDN is MDN, and the branding will stay the same.

Yari is a codename for the effort to move MDN closer to a static site architecture.

Re:Welcome Yari: MDN Web Docs has a new platform by caddywompus on Tuesday December 15, 2020 @12:24PM (#25432451)
Interesting, I do like the layout here, but I do agree with your points.
Re:Welcome Yari: MDN Web Docs has a new platform by yarri on Tuesday December 15, 2020 @01:13PM (#25433076)
The name is cool. That logo, not so much.
Re:Welcome Yari: MDN Web Docs has a new platform by caiob on Tuesday December 15, 2020 @08:46AM (#25430207)
The goal is to get more people involved. Doesn't it make sense to lower the entry barrier by implementing a more popular syntax?
Re:Welcome Yari: MDN Web Docs has a new platform by caddywompus on Tuesday December 15, 2020 @12:28PM (#25432500)
Yes, that's definitely the balance to maintain. Ease of entry, vs tooling to manage the project as it grows. The main reason I see it being an inhibition is due to the size of the HTML spec, and the number of pages that it will need.

I think this is why a lot of sites take markdown, then add their own extensions, like how there is "Github Markdown" among many other flavors. That's definitely one route, but I see something like ReStructuredText or Asciidoc as more mature and interoperable, while still being relatively easy to master in the same way as Markdown. Since they can both produce docbook output, vastly easing any migrations in the future by adhering to an industry standard.

Re:Welcome Yari: MDN Web Docs has a new platform by peterbe on Tuesday December 15, 2020 @05:57PM (#25436484)
It's not that easy. We have 60+k pages carried over from 15 years of organic evolution. It's unstructured and messy. A move away from HTML to something "more popular syntax" (like Markdown) is NOT easy.