Go to file
Daira Emma Hopwood fe8c85997a Add TFL DAG to index and put Halo2 in the same view order we use elsewhere
(mostly alphabetical).

Signed-off-by: Daira Emma Hopwood <daira@jacaranda.org>
2023-10-11 18:04:44 +01:00
.github/workflows Add support for tfl dag. 2023-10-11 17:38:58 +01:00
public Highlight nodes with S-waiting-on-review label 2023-01-23 21:12:25 +00:00
template_scripts [#17] Create Android and iOS specific views of the Wallet DAG 2022-06-27 20:40:56 -03:00
.gitignore Render HTML version of DAG with pan-and-zoom 2022-02-21 13:00:05 +00:00
README.md Add support for tfl dag. 2023-10-11 17:38:58 +01:00
gen-schema.sh Create gen-schema.sh script and update README. 2023-10-11 16:37:28 +01:00
index.html Add TFL DAG to index and put Halo2 in the same view order we use elsewhere 2023-10-11 18:04:44 +01:00
pyproject.toml Apply suggestions from code review 2021-12-20 11:29:50 -07:00
requirements.txt Add pygraphviz to requirements 2021-05-07 12:30:13 +12:00
zcash-issue-dag.py Fix a bug that occurs only when there are no tickets outside milestones 2023-10-11 17:54:37 +01:00

README.md

Zcash Developers Hub

This is the source repository for the Zcash Developers Hub website: https://zcash.github.io/developers/

For now, this repo hosts the script used to generate ECC's development dependency graph, and a workflow that generates and hosts it.

Setup

This project uses poetry for dependency management: https://python-poetry.org/ It also depends on the Graphviz library; for Debian-based distros, install the libgraphviz-dev package.

After installing poetry, run poetry install.

The scripts provided by this project require two environment variables:

  • GITHUB_TOKEN: a GitHub API token with permission to read the necessary repositories.
  • ZENHUB_TOKEN: a ZenHub API token.

You can generate a GitHub token with this url. This token should not have any excess authority; it only needs public read access! Make sure all of those extra capability checkboxes are unchecked.

The DAG script depends upon GraphQL APIs for GitHub which can be generated using GITHUB_TOKEN=<INSERT> ./gen-schema.sh.

Generating DAGs

The zcash-issue-dag.py script supports several configuration options, also supplied as environment variables:

  • DAG_VIEW=[core|halo2|tfl|wallet|wallet-ios|wallet-android|zf]: The DAG to render (default: core).
  • SHOW_MILESTONES=[true|false]: Whether or not to render GitHub milestones as boxes (default: false).
  • SHOW_EPICS=[true|false]: Whether or not to render ZenHub epics as boxes (default: false).
  • INCLUDE_FINISHED=[true|false]: Whether or not to include closed issues with no open blockers (default: false).

Here's an example script for easily running the DAG generator:

#!/usr/bin/env bash

DAG_VIEW=core \
SHOW_MILESTONES=false \
GITHUB_TOKEN=<INSERT> \
ZENHUB_TOKEN=<INSERT> \
poetry run python ./zcash-issue-dag.py

You can find a series of template script files inside the folder template_scripts.