This documentation uses the Just the Docs template for Jekyll. If you're unfamiliar with Jekyll and static site generation, it is strongly recommended that you first go to their website to learn more about it.
Next, once you have a local copy of the repo, you will be working out of two folders in the root directory: assets\
and docs\
.
assets\
is self explanatory, and will contain any images or other such media you may add. docs\
contains all of our documentation, sorted by category and subcategory:
- Basics: For basic operations like keyboard shortcuts.
- Tutorials: For guides on specific, popular processes handled by DMHub, i.e. "How to make Perfect Stairs".
- Players & DMs: A comprehensive high-level section for various parts of DMHub. For players and DMs.
- Creating in DMHub: Pertaining to map editing, high-level compendium work, and asset creation. For artists, writers, and media content creators.
- Development: Pertaining to DMHub's interface customization and API. For modders and programmers.
- Resources: Help, FAQs, tools, links, et cetera.
Note that files in each folder have a specific naming scheme to keep things tidy.
-
If your created site is
YOUR-USERNAME/YOUR-SITE-NAME
, update_config.yml
to:title: YOUR TITLE description: YOUR DESCRIPTION theme: just-the-docs url: https://YOUR-USERNAME.github.io/YOUR-SITE-NAME aux_links: # remove if you don't want this link to appear on your pages Template Repository: https://github.com/YOUR-USERNAME/YOUR-SITE-NAME
-
Push your updated
_config.yml
to your site on GitHub. -
In your newly created repo on GitHub:
- go to the
Settings
tab ->Pages
->Build and deployment
, then selectSource
:GitHub Actions
. - if there were any failed Actions, go to the
Actions
tab and click onRe-run jobs
.
- go to the
Assuming Jekyll and Bundler are installed on your computer:
-
Change your working directory to the root directory of your site.
-
Run
bundle install
. -
Run
bundle exec jekyll serve
to build your site and preview it atlocalhost:4000
.The built site is stored in the directory
_site
.
NOTE: If you modify _config.yml
for any reason, you may need to rebuild the site manually before your changes will take effect.
Just upload all the files in the directory _site
.
This repository is licensed under the MIT License. You are generally free to reuse or extend upon this code as you see fit; just include the original copy of the license (which is preserved when you "make a template"). While it's not necessary, we'd love to hear from you if you do use this template, and how we can improve it for future use!
The deployment GitHub Actions workflow is heavily based on GitHub's mixed-party starter workflows. A copy of their MIT License is available in actions/starter-workflows.