Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

decentraland/technical-documentation

Repository files navigation

Contribute to Decentraland Documentation ✨🚀.

Welcome to Decentraland technical documentation, the goal of this repository is to have a single point of access for all necessary information to use, create and contribute to Decentraland.

The repository will scrap a configurable list of directories and render the content of their docs folder. Sidebar stucture can be completely configured in each repository.

Technical documentation is divided in three major areas:

  • User: Everything related to the use of the platform
  • Creator: Information for people wanting to create content inside Decentraland
  • Contributor: Code documentation for developers wanting to contribute to the project

How to

Step 1: Create and format your documentation files: 🚀

In your desired repository:

  • Create a folder named docs at root level
  • Inside the docs folder save your documentation files. Here are some important considerations:
  • We render documentation from markdown files, so every file must include valid markdown in it's body and the .md extension. Unsure about .md syntax? Check this awesome cheat sheet
  • If your files include local images please place them at the same folder level as the corresponding .md file
  • In order to render the links to the files in the documentation's site sidebar all .md files must include the following frontmatter metadata tags at the start: title representing the name of the article and slug which will be the relative path to the documentation's site url

example:

---
title: "Metaverse runtime"
slug: "the relative slug to your page, ex: /contributor/sdk/diagrams/metaverse-runtime"
---
  • If using html tags please close every tag, specially if they are self-closing like <img />
  • You can find many .md formatters and editor online like this one

Step 2: Create a summary.json file with the sidebar desired structure

  • The documentation site is completely agnostic to the internal structure of the docs folder. To provide a hierarchy for your content a summary.json file must be provided

Example:

{
  "contributor": [{
    "name": "SDK",
    "children": [{
	  "name": "Diagrams",
	    "children": [{
	      "name": "Metaverse runtime",
	      "slug": "/contributor/sdk/diagrams/metaverse-runtime"
	    }]
	  }]
  }]
}

The code above will render the following structure: rendered sidebar example

Is there a problem if my category is already used? No. All summary files that share the same category will be grouped when the menu is generated:

grouped categories

Step 3: Add the repository to the scrap list

Preview your docs

Opening a pull request against decentraland/technical-documentation will trigger the test CI pipeline which deploys a test version to the CDN. Feel free to preview your docs in the PR's generated link before merging.

Contribute to the codebase

// TO - DO

Deploy & publish

test-static-pipeline

Repository to test the health and integration of static pipelines

Implements all the pipeline stages of this document:

https://docs.google.com/drawings/d/1hDa0mOk4Fb0rwzDKR8AVzLQeINlPmKqEIABeEyS_LNE/edit

  1. Every push to master generates an NPM package, it is published with the @next dist-tag

  2. Every semver release creates and publishes a @latest dist tag

  3. Every time a package is published, the gitlab pipeline pipelines/static-sites-pipeline is triggered. That pipeline uploads the content of the published package to https://cdn.decentraland.org

  4. The then pipeline starts a rollout pipeline. Which is out of scope of this documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published