decentraland / technical-documentation

3 stars 7 forks source link

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:

How to

Step 1: Create and format your documentation files: :rocket:

In your desired repository:

example:

---
title: "Metaverse runtime"
slug: "the relative slug to your page, ex: /contributor/sdk/diagrams/metaverse-runtime"
---

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

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.