grunt-docs icon indicating copy to clipboard operation
grunt-docs copied to clipboard

Create a proper "Documentation" index page

Open JKVeganAbroad opened this issue 9 years ago • 22 comments

Currently the "Documentation" link on Grunt's website header links to the same location as "Getting Started".

It would be more practical to instead have the documentation link to a "documentation overview" landing page. Also, removing duplicated URLs is a good idea.

Feel free to comment to this issue if you have ideas on what a "Documentation Overview" landing page should look like.

JKVeganAbroad avatar Feb 09 '16 06:02 JKVeganAbroad

I can take of this task if available but I'd like also to have some guidance. Is there anything that you definitely want to show on this page?

AurelioDeRosa avatar Feb 21 '16 16:02 AurelioDeRosa

Friendly ping. I'd like to submit a PR today for your review.

AurelioDeRosa avatar Mar 05 '16 13:03 AurelioDeRosa

Oh awesome! I look forward to pulling it!

JKVeganAbroad avatar Mar 05 '16 13:03 JKVeganAbroad

@AurelioDeRosa, I see you asked for some guidance, sorry I missed your call!

I saw this GitHub one, for a little inspiration, but it sounds like you've already made one!

JKVeganAbroad avatar Mar 05 '16 14:03 JKVeganAbroad

Thank you for the suggestion. I've followed your hint to create the page.

AurelioDeRosa avatar Mar 05 '16 15:03 AurelioDeRosa

So far the introductory wording is fantastic; we just need to have a complete index of doc pages as well—like a "Contents" page for quick reference, and very much similar to the existing side-bars of the site.

JKVeganAbroad avatar Mar 05 '16 23:03 JKVeganAbroad

For everybody's reference, @AurelioDeRosa has created the initial Documentation.md file.

JKVeganAbroad avatar Mar 05 '16 23:03 JKVeganAbroad

Thank you for the shout out @JKAussieSkater. In regard of your point to improve the page, do you want to add the content of the sidebar in the Documentation page as well?

AurelioDeRosa avatar Mar 06 '16 12:03 AurelioDeRosa

Yeah! Maybe split it up into a two column grid just to see how it feels.

JKVeganAbroad avatar Mar 06 '16 15:03 JKVeganAbroad

Do we have the possibility to split in columns using markdown? The only way without classes and html markup I can think of is to use a table which will lead to poor semantic.

AurelioDeRosa avatar Mar 06 '16 15:03 AurelioDeRosa

I don't think Git flavoured markdown (which can do tables) is supported by the Jade parser . . . I could be wrong. But ultimately we need a good visual layout for an index, so we've got to do what we've got to do. HTML is the way to go.

JKVeganAbroad avatar Mar 06 '16 15:03 JKVeganAbroad

Using DIVs of course, not tables 😉

JKVeganAbroad avatar Mar 06 '16 15:03 JKVeganAbroad

Looks like there is table support recently at least tho, I've used this tool: http://www.tablesgenerator.com/markdown_tables

Tables Are Cool
col 1 is left-aligned $1600
col 2 is centered $12
col 3 is right-aligned $1

OBTW you guys are kicking butt!

dmethvin avatar Mar 06 '16 16:03 dmethvin

I have mixed sentiments on this matter. On one side I'd like to stick with Markdown and not starting the Markdown/HTML mix which will result in a mess. On the other hand, tables for semantic suck. If I'm forced to pick one, I'd rather go for Markdown/HTML mix though.

In regard of the classes to use, I've seen that the website uses Bootstrap v2. So, we should have a structure like:

<div class="row-fluid">
   <div class="span6">
      Content here
   </div>
   <div class="span6">
      Content here
   </div>
</div>

Any further comment or are we good to go?

P.S.: Thank you @dmethvin!

AurelioDeRosa avatar Mar 06 '16 16:03 AurelioDeRosa

That's a sick generator @dmethvin!

@AurelioDeRosa, Let's go with the Bootstrap option.

JKVeganAbroad avatar Mar 06 '16 21:03 JKVeganAbroad

I've submitted a PR based on our discussion. Hopefully it matches the expectations.

AurelioDeRosa avatar Mar 07 '16 02:03 AurelioDeRosa

@vladikoff, how might we go about using HTML in our *.md files? It doesn't seem to be compatible with the Jade parser on the stage server. Here's a screenshot: Raw HTML when parsing *md files

Edit: This is regarding Documentation.md

JKVeganAbroad avatar Mar 07 '16 03:03 JKVeganAbroad

Perhaps there is an escape HTML entities in place? For instance, in Handlebars instead of using {{variable}} you have to write {{{variable}}}.

AurelioDeRosa avatar Mar 11 '16 00:03 AurelioDeRosa

Looks like vladikoff is busy this week, @shama, do you have any ideas how we can embed HTML in the Jade/Markdown files?

JKVeganAbroad avatar Mar 11 '16 01:03 JKVeganAbroad

escape it as in show the html?

<div>Like this</div>

Is the markdown processing different you are talking about different than the gh-pages? If it's not, then I would think you could use kramdown syntax and the code highlighting would be rouge. If this were the case, you can apply css to markdown items yada yada.

steveoh avatar Mar 16 '16 15:03 steveoh

@JKAussieSkater I'm not too familiar but the docs are built with gollum correct? So depending on the tags, using HTML in the markdown should work: https://github.com/gollum/gollum/wiki/Security#page-sanitization. As for Jade, they have syntax for raw HTML: http://jade-lang.com/reference/plain-text/

shama avatar Mar 16 '16 16:03 shama

Is there any update for the HTML code of the documentation that was removed for the release?

AurelioDeRosa avatar Apr 19 '16 15:04 AurelioDeRosa