Jekyll Theme: Alta Docs Theme
The Jekyll theme for documenting software development projects.
Basic usage
New Jekyll project
-
Install Jekyll
gem install bundler jekyll
-
Create Jekyll project:
jekyll new my-project
-
Go to the project:
cd my-project
-
Run:
bundle exec jekyll serve # OR bundle exec jekyll serve --host xxx.xx.xxx.xx --port 4001
Use jekyll-theme-alta-docs
-
Change
Gemfile
# gem "minima", "~> 2.5" # <-- Remove or comment gem "jekyll-theme-alta-docs" # <--- Add
-
Run:
$ bundle install
-
Create _docs/ folder
-
Edit
_config.yml
:# Set new theme: theme: jekyll-theme-alta-docs # Register new collection "docs" from "_docs" folder: collections: docs: output: true permalink: /:collection/:name/ # Bind your "docs" collection doc_collection : docs
-
Add markdown files to the
_docs/
folder:# _docs/01_intro/getting_started.md --- title: Getting started # Enter any name category: Intro # Enter any category. Categories are used to group docs. layout: doc # Important! Use doc layout toc: true # Optional: to display table of contents order: 11 # To sort the documents in the navigation --- ## Getting started Hello world!
-
Add
index.md
in the root directory (Home page):# index.md --- layout: page --- # Home page This is my home page
... or:
---
layout: page
---
{% include project_overview.html next_button="/docs/development/" %}
-
Run:
bundle exec jekyll serve
What's next?
Add more documents in _docs folder and see advanced options.
Advanced options
See more: advanced options
Development
To set up your environment to develop this theme, run bundle install
.
To test theme, run: bundle exec rake preview
or bundle exec rake preview host=xxx.xx.xxx.xx
Development todo's
Add more templates, integrations with the source code, setup scripts.
License
The theme is available as open source under the terms of the MIT License.