was created to make it easier to publish documentation for github repositories.
i wanted to have a fast solution without the need of taking care about
And i wanted to be able to edit the pages quite fast.
i love pug - the successor of jade - for editing html etc. The same applies to jade which has a couple of advantages compared to pure css.
due to that i'm running a save-on-build process within my editor which enables me to write my code in pure pug/jade and sass and on save my editor saves the file also as html / css. That#s the reason, why you'll find additionaly to the html and css-files also the jade and sass-version. - It's even easier to edit.
of course i could list you all the html-code (containing hundreds of brackets, closing-tags etc.) but for a better readability i just show you the structures as simple pug -examples.
If you open the index.jade you can directly start keying-in your content, after the
.pages
element.
so if you write for instance:
.pages
.page
.nav-label Introduction
h1 This gh-pages template
p was created to make it easier to publish Documentation for github repositories
h2 Advantages
p i wanted to have a fast solution without the need of taking care about
ul
li responsiveness,
li adding a menu
li keeping a small footprint and fast loading time
li getting it without any dependancies and libraries
li installing any additional tools like jekyll etc.
you'll get one single
if you want to pull a menu-item to the right, just add the class 'nav-pull-right' to the page
.page.nav-pull-right
If there's no need to add nav-labels which differ from your headings, why shoud you add them?
Just try leaving away the .nav-label container:
eg.:
.page
h1 @github
will add a navigation item to your page which has "@github" as label.
If you don't define the nav-label explicityl the page will try to fetch the first heading (up to <h3>)
.page>.nav-label:first-child,
.page:not(.nav-label)>h1:first-child,
.page:not(.nav-label):not(h1)>h2:first-child,
.page:not(.nav-label):not(h1):not(h2)>h3:first-child
The design of this repo will probably not fit exactly to your needs, but it should be easy to edit it using the style.sass / style.css-file within the /css/
folder. Bring it to you own style. :-)
If you want to replace the icon, just change the /images/Logo.svg
to your needs.
For an easy navigation the navigation is kept responsive and always on top of the page.
Additionaly switching between the pages is now available via simple swipe guesture. A swipe from right to left = next page and a swipe from left to right jumps to the previous page within the menu.
If you have recommendations, remarks, hints or want to tell me anything else, you can get in touch with me @ the github-issues page.