Replies: 5 comments
-
The collons |
Beta Was this translation helpful? Give feedback.
-
@IceflowRE: It doesn't work in Jekyll, so unless you can find another way to do it, no. |
Beta Was this translation helpful? Give feedback.
-
Just to complete it, the table with |
Beta Was this translation helpful? Give feedback.
-
Updated original post with what @IceflowRE has learned. |
Beta Was this translation helpful? Give feedback.
-
For those who want to try how it looks offline (not a perfect solution but it worked fast and dirty):
For the documentation markdowns, you have to add to the top:
However if i missed something tell me, because i dont remember everything what i tried. |
Beta Was this translation helpful? Give feedback.
-
OK, so we've seen some good work being done on porting the wiki to markdown, but there have been a few teething issues that I now need to address. This is a work in progress, so there may be updates; I'll include a comment when I make changes. This shouldn't be turned into a documentation page until we've solidified the content.
The Location
Using the built-in GitHub wiki doesn't work quite as well as a normal repository, so I'm disabling wikis and moving the existing work to the Docs Repository. If you've already check out the existing wiki you should be able to just set the new location and pull from there:
By using a normal repository we'll be able to do the proper post-commit actions like IRC channel announcements and automatic deployments to the Beta Website.
The Style
I didn't set a style guide to begin with because I was unsure of what to expect and unaware of any cross-compatibility issues. As I mentioned, the documentation will be automatically deployed to the Beta Website, and this involves going through a few steps using GitHub Pages. Basically there are two "pre-processors", Jekyll, and Kramdown. It is necessary to understand the unique syntax of each when crafting your markdown pages.
Headers
All headers should be presented in ATX format, Setex format is not supported. This means you create headers with the hash symbol (
#
), and not a line followed by a series of dashes (-
). It is important to note that the title of the page will always be the first-level header (a single#
), and your documents should always start with second-level headers (two##
).Tables
Your tables need to have an empty line before the first entry. Jekyll does not support rendering all table types without this being done.
Correct
Incorrect
Images
It is inevitable that you are going to want to include images in your documents, and in most cases you are going to need to resize them in the page, which isn't something that is inherently supported by markdown. In these cases you can use the
<img>
HTML tag with some conditions:images
directory in the docs repository.Paths
All paths need to be relative to each other. The docs repository is converted to GitHub Pages and sits in the
docs
directory, not at the root.Table of Contents
Kramdown supports the automatic generation of these, and the pages are automatically generated to include them. You do not need to create your own at the top of your pages.
Beta Was this translation helpful? Give feedback.
All reactions