Tor dev website
Go to file
2024-08-08 13:00:20 -04:00
archetypes Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
assets Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
config Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
content/en add missing content metadata that make the build fail 2024-08-08 13:00:16 -04:00
data Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
functions Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
i18n Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
layouts fix getting started button url on landing page 2024-08-08 13:00:19 -04:00
old First force-push of Dev Docs draft 2024-08-08 12:57:42 -04:00
static Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
.editorconfig Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
.eslintignore Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
.eslintrc.json Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
.gitignore Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
.gitlab-ci.yml pages jobs shouldn't be added to main pipeline 2024-08-08 13:00:20 -04:00
.markdownlint-cli2.jsonc Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
.stylelintignore Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
.stylelintrc.json Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
babel.config.js Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
config.toml Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
LICENSE Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
LICENSE.md First force-push of Dev Docs draft 2024-08-08 12:57:42 -04:00
package-lock.json Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
package.json Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -04:00
README.md docs: update README.md to explain how to setup the project 2024-08-08 13:00:17 -04:00
robots.txt First force-push of Dev Docs draft 2024-08-08 12:57:42 -04:00
SECURITY.md Reapply "Updates to the layout", fixing build 2024-08-08 13:00:15 -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.

How to install

The actual setup use npm to provide all the libraries you need to develop the website and Hugo itself.

Installing node / npm

Debian: apt install nodejs arch: pacman -S nodejs On mac using homebrew: brew install node

Installing hugo and other dependencies

Once node is installed, you can install the dependencies with the following command npm install.

To run the application locally you can run nom run server

Local testing

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

npm run 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.