Tor dev website
Go to file
2024-08-08 13:00:09 -04:00
archetypes Updates to the layout 2024-08-08 13:00:09 -04:00
assets Updates to the layout 2024-08-08 13:00:09 -04:00
config Updates to the layout 2024-08-08 13:00:09 -04:00
content/en Updates to the layout 2024-08-08 13:00:09 -04:00
data Updates to the layout 2024-08-08 13:00:09 -04:00
functions Updates to the layout 2024-08-08 13:00:09 -04:00
i18n Updates to the layout 2024-08-08 13:00:09 -04:00
layouts Updates to the layout 2024-08-08 13:00:09 -04:00
old First force-push of Dev Docs draft 2024-08-08 12:57:42 -04:00
static Updates to the layout 2024-08-08 13:00:09 -04:00
.editorconfig Updates to the layout 2024-08-08 13:00:09 -04:00
.eslintignore Updates to the layout 2024-08-08 13:00:09 -04:00
.eslintrc.json Updates to the layout 2024-08-08 13:00:09 -04:00
.gitignore Updates to the layout 2024-08-08 13:00:09 -04:00
.gitlab-ci.yml fix template filename 2024-08-08 12:57:59 -04:00
.markdownlint-cli2.jsonc Updates to the layout 2024-08-08 13:00:09 -04:00
.stylelintignore Updates to the layout 2024-08-08 13:00:09 -04:00
.stylelintrc.json Updates to the layout 2024-08-08 13:00:09 -04:00
babel.config.js Updates to the layout 2024-08-08 13:00:09 -04:00
config.toml Updates to the layout 2024-08-08 13:00:09 -04:00
LICENSE Updates to the layout 2024-08-08 13:00:09 -04:00
LICENSE.md First force-push of Dev Docs draft 2024-08-08 12:57:42 -04:00
package-lock.json Updates to the layout 2024-08-08 13:00:09 -04:00
package.json Updates to the layout 2024-08-08 13:00:09 -04:00
README.md Updates to the layout 2024-08-08 13:00:09 -04:00
robots.txt First force-push of Dev Docs draft 2024-08-08 12:57:42 -04:00
SECURITY.md Updates to the layout 2024-08-08 13:00:09 -04:00

Tor Dev Portal

The Tor Dev Portal is built using the Hugo Static Site Generator. To edit the website locally, we have to install Hugo Extended version and a text editor.

Overview

Hugo is a static HTML and CSS website generator written in Go. It is optimized for speed, ease of use, and configurability. Hugo takes a directory with content and templates and renders them into a full HTML website.

Hugo relies on Markdown files with front matter for metadata, and you can run Hugo from any directory. This works well for shared hosts and other systems where you dont have a privileged account.

Hugo renders a typical website of moderate size in a fraction of a second. A good rule of thumb is that each piece of content renders in around 1 millisecond.

How to install

If you want to use Hugo as your site generator, simply install the Hugo binaries. Use the installation instructions in the Hugo documentation.

Local testing

To run a local version of the website, we have to run the following command inside the root path of the website.

hugo server --environment production

The --environment argument is necessary for us to be able to render the content in the same way that the public version would come out to be.

With this we're ready to start editing the files.

Docs

For further changes and customization, refer to the Hugo docs.