2 [**View the documentation**](http://solgenomics.github.io/sgn/)
5 The documentation is written in [kramdown-flavored](https://kramdown.gettalong.org/) markdown. It also takes advantage of the [Liquid](https://shopify.github.io/liquid/) templating system and the built-in variable in [Jekyll](https://jekyllrb.com), the static site generator that GitHub pages uses.
7 This folder (`docs/`) can be used to build the site either via GitHUb pages or via a local Jekyll installation.
9 ### Guidelines for adding to the documentation
31 You probably shouldnt use h1 headers, as the title of the page is always displayed as an h1, and using them elsewhere could be visualy confusing.
33 **DONT USE BOLD INSTEAD OF HEADERS** (except in tables). Doing so makes generating a TOC impossible (and also visually looks off.)
35 #### Horizontal Rules (Section Seperators)
37 In kramdown, a horizontal rule must be preceeded and followed by a blank line:
46 #### Images/Screenshots
48 _For screenshots_: try to make sure that the image is of an unbranded version of the db.
50 To insert an image, we need to tell Jekyll to generate the relative path to the file like so
52 ![YOUR ALT TEXT]({{'assets/images/YOURIMAGE.png' | relative_url }})
56 To insert an link to something outside of the docs, we can use the usual markdown format:
58 [LINK TEXT](http://your.link)
60 If you want to link to a docs page, use this syntax. Note that we put the **path to the file** (from the `docs` directory), **not the rendered HTML page**, after `link`.):
62 [LINK TEXT]({{ site.baseurl }}{% link your_folder/YOUR_FILE.md %})
64 If you want to link to a header on a docs page, we can extend the syntax above like so:
65 First, we assign the header we are linking to an ID:
67 ### I am the header {#your-header-id}
69 then, we add that ID to the link:
71 [LINK TEXT](#your-header-id) <!-- On the same page-->
72 [LINK TEXT]({{ site.baseurl }}{% link YOUR_FILE.md %}#your-header-id)
75 ### Creating New Pages
76 **Every page should start with this YAML "front-matter" before anything else:**
79 title: "YOUR PAGE TITLE HERE"
83 **To insert a table of contents to a page with the following snippet (INCLUDING the comments [excluding them will cause the TOC to be indexed for search and not be readable by the TOC generator of folder pages.]):**