Giter Site home page Giter Site logo

zilliqa / dev-portal Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 0.0 16.8 MB

Documentation for Zilliqa developer

Home Page: https://dev.zilliqa.com

Dockerfile 0.72% Makefile 1.58% Starlark 1.02% HTML 35.55% CSS 2.44% Python 7.54% JavaScript 47.34% Rust 3.80%

dev-portal's Introduction

Zilliqa developer documentation

This repository contains the Zilliqa developer documentation.

How it works

The developer portal is a pair of mkdocs materials-themed sites - one for Zilliqa 1 and one for Zilliqa 2.

The Zilliqa 1 site is static. The Zilliqa 2 site includes content created by the rust program in docgen - see below.

They are served in production by an nginx container containing the routing between the two, built by the Dockerfile and using the config file from default.conf.

The material theme is fairly heavily customised with overrides in both Zilliqa 1 and Zilliqa 2.

Docgen

The docgen program:

  • Reads the zq2_spec.yaml file in this directory.
  • Clones Zilliqa 2 into cache/zq2
  • Runs the docgen program in Zilliqa 2 to generate API documentation.
  • Repeats the process for all the versions of Zilliqa 2 it is to document.
  • Generates an mkdocs.yaml

mkdocs.yaml for zq2 is generated from:

  • zq2/mkdocs.in.yaml, which inherits from
  • zq2/parenty.yaml

Developing

Development is controlled by the Makefile in this directory.

You will need mkdocs. Make sure you're in a venv (because mkdocs doesn't seem to like installing outside one):

python -m venv ~/mydir
source ~/mydir/bin/activate

And then:

pip3 install -r requirements.txt

You will also need enough local tooling installed to build ZQ2; this starts with installing Rust, but there are other tools - including cmake and protobuf required. Check the zq2 repository for details.

Now,

  • make dev1 will make and serve the ZQ1 docs locally on port 8000.
  • make dev2 will do the same with the ZQ2 docs.

You can set SERVEROPTS to pass option (usually -a <listen_address>:<port>) to mkdocs serve.

If you want to check containerised builds, make run-image will do that for you and run it on port 8080.

dev-portal's People

Contributors

chetan-zilliqa avatar dependabot[bot] avatar elliott-green avatar frankmeds avatar jameshinshelwood avatar lama1403 avatar mauromedda avatar pavlops avatar rrw-bigpay avatar rrw-zilliqa avatar saeed-zil avatar sam-zilliqa avatar troelsfr avatar wubruno avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dev-portal's Issues

Update deployment plan

zq2/docs/changes.md contains a description of how we will transition from Zilliqa 1 to Zilliqa 2; this needs updating to whatever the current plan is - probably by @DrZoltanFazekas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.