HOPR docs
├── docs # docs directory for the "Next" docs version
│ ├── core # directory with HOPR basics content
│ ├── developers # directory with demo dApps, Rest API, Running local HOPR cluster content
│ ├── node # directory with install & run HOPRd node, user guide content
│ ├── staking # directory with staking, get hopr, cross-chain, wrap token content
│ ├── about-hopr.md # about HOPR file
│ └── faq.md # FAQ file
├── src # styling & layout files
│ ├── components # directory for images
│ │ └── HOPRfrontPage.js # Front page component file
│ ├── css # styling files
│ └── pages # directory for images
│ └── index.js # Front page file
├── static # static assets
│ └── img # directory for images
├── versioned_docs # docs directory for the versioned docs
│ └── version-v1.87 # docs directory for 1.87 version
│ ├── core # directory with HOPR basics content
│ ├── developers # directory with demo dApps, Rest API, Running local HOPR cluster content
│ ├── node # directory with install & run HOPRd node, user guide content
│ ├── staking # directory with staking, get hopr, cross-chain, wrap token content
│ ├── about-hopr.md # about HOPR file
│ └── faq.md # FAQ file
├── versioned_sidebars # sidebars directory for the versioned sidebars
│ └── version-v1.87-sidebars.json # sidebar file for 1.87 version
├── docusaurus.config.js # docusaurus configuration file
├── package.json # packages with all dependencies
├── sidebars.json # sidebar for the "Next" docs version
└── versions.json # file to indicate what versions are available
Next
is a future docs version, which should be always updated.
Versioned
is an old docs version.
Create a new page with file type .md
Page properties are specified on the top of the page:
---
id: what-is-hopr
title: What is HOPR?
---
Where id
means identification of current page, title
means page title which is reflected on top of the page, under <h1>
tags.
Text is formatted based on Markdown markup language
{
type: 'category',
label: 'Core concepts',
items: ["core/what-is-hopr", "core/what-is-metadata", "core/anonymous-routing", "core/mixnets", "core/incentives", "core/proof-of-relay", "core/tickets-and-payment-channels", "core/probabilistic-payments", "core/cover-traffic", "core/cover-traffic-nodes", "core/balancing-cover-traffic"]
},
type
can be:
category
, directory which will have sub-itemsdocs
, single page without sub-items
label
:
Is the name of a menu item.
items
:
Are used only if the menu type is category
.
Items can be sub-pages or it can have also sub-categories.
For example: core/what-is-hopr
, core
means a directory, what-is-hopr
is the ID
of a page (See HOPR docs file structure). Specifically for this example, what-is-hopr
page is under the core
directory.
Embed code should be included into <div class="embed-container"></div>
html tags.
- Copy
docs
directory fromNext
docs version - Paste into
versioned_docs
directory and renamedocs
toversion-v1.xx
- On sidebars directory Duplicate
version-v1.87-sidebars.json
file and rename toversion-v1.xx-sidebars.json
, update duplicated file contents fromNext
version sidebar. - Edit file
versions.json
to add a new version. - Edit file
docusaurus.config.js
and update thelastVersion:
to the latest version.