emlazzarin / trueblocks-docs

Home Page:https://trueblocks.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub repo for TrueBlocks.io.

hugo rsync link checker

Contributing to the docs

To develop on this site, you need npm and hugo.

To run locally:

  1. Install npm dependencies
npm install
  1. serve hugo to local host
hugo server

We have a few customizations, but all the hard work for creating this theme was done by the good people at Doks.

Important directories

  • The Homepage is in the layouts/index.html
  • Content templates go in archetypes
  • layouts contains all information about templates
  • config/_default/menus.toml contains the structure for the overall menu and the section menus

How to add menu items

Open up config/_default/menus.toml.

If you want to add a head section, add a config to [[main]].

[[main]]
name = "Docs"
url = "/docs/prologue/introduction/"
weight = 10

The more "weight", the farther to the left it will be.

Then change some files in layouts. Check out the files the template owner changed here.

If you want to add a subsection, it will look like this under [[<section-name>]]

[[docs]]
name = "Tools"
weight = 20
identifier = "tools"
url = "/docs/concepts/"

The more weight it has, the farther down the section will be.

When you create content, you probably want to create corresponding directories in content.

Adding pages

In the content folder, create a new page. In the new directory, add a file called _index.md. The name must start with _, unless you only need one page. If you need subpages, you add them to the same directory.

The new page will use the default layout. It may happen that it goes into "list" mode (the text content is not displayed and part of it is rendered as headers). In such a case, add layout: single in front matter.

If you need a different layout for the pages, create a new directory in layouts using the same name as in content folder.

Contributing

We love contributors. Please see information about our work flow before proceeding.

  1. Fork this repository into your own repo.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make changes to your local branch and commit them to your forked repo: git commit -m '<commit_message>'
  4. Push back to the original branch: git push origin TrueBlocks/trueblocks-docs
  5. Create the pull request.

Contact

If you have questions, comments, or complaints, please join the discussion on our discord server which is linked from our website.

List of Contributors

Thanks to the following people who have contributed to this project:

About

https://trueblocks.io/

License:GNU General Public License v3.0


Languages

Language:HTML 90.1%Language:SCSS 8.3%Language:JavaScript 1.6%