This is an open sourced, community driven, living document, which means that it will be updated as time goes on to include more examples, correct erratum, etc. provided by both the maintainer as well as members of the community, like you!
Created with Honkit
To create and preview content locally, do the following:
$ git clone git@github.com:glinesbdev/versus.git
$ cd versus
$ npm install
$ npx honkit serve
You can also use
npm run dev
to start the development server.
Then head to http://localhost:4000 to view the book. Any changes you make to content will be automatically reloaded by your browser.
When adding any new variables or partials, please update this document!
Honkit allows you to create custom variables to use in your views. Below are the current registered variables.
These are used in Markdown files with the following syntax: {{ book.partials.path }}
.
To register new variables, update the
variables
key in the book.json file.
Partials are files that you can include into other files for re-use or to add modularity. These files are located in the src/partials directory.
Refer to the Honkit Documentation for more information.
All macros are stored in the /macros/macros.html
. To use a macro on a page, first import it
{% import book.macros_path as macros %}
or you can import specific functions separated by commas
{% from book.macros_path import external_link %}
You can then use it {{ external_link('Fortnite', 'https://fortnite.com') }}
.
Find something that needs fixing? If you have the knowledge and know-how to fix it, please contribute back! For anything else, please create an issue.
- Please read and familiarize yourself with our Document for Contributors. By contributing to this project, you agree to abide by the rules of the Contributing Document.
- Fork the repo.
- Make changes in your local repo.
- Push it to your forked branch.
- Create a new Pull Request.