Skip to content

mapofzones/docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map of Zones docs

Status of Last Deployment:

Map of Zones docs is a project documentation static site. Used static site generator MkDocs, and some extensions.

Requirements

  • Python (3.8, 3.9 or later) - python.org/downloads
  • Pip [via python] (20.0.2 or later) - python get-pip.py
  • MkDocs [via pip] (1.1.2 or later) - pip install mkdocs
  • MkDocs-diagrams [via pip] (v1.0.0 or later) - pip install mkdocs-diagrams
  • Graphviz dot (2.44.1 or later) - graphviz.org/download

Usage

  • mkdocs serve - Start the live-reloading docs server.
  • mkdocs build - Build the documentation site.
  • mkdocs -h - Print help message and exit.
  1. Pages - project documentation with Markdown. User guides: mkdocs.org/user-guide

  2. Diagram as Code - diagrams lets you draw the cloud system architecture in Python code. Examples: diagrams.mingrammer.com

  3. GraphQL schema - just install graphqurl via: npm install -g graphqurl then use this for guest: gq https://<your_ip>/v1/graphql --introspect > schema.graphql or this for admin: gq https://<your_ip>/v1/graphql -H "X-Hasura-Admin-Secret: <your_adminsecretkey>" --introspect > schema.graphql source: hasura.io/docs/latest/graphql/core/guides/export-graphql-schema

  4. GraphQL schema to markdown - install library via: npm install graphql-markdown --save-dev then transform graphql to markdown: graphql-markdown ./path/to/schema.graphql > schema.md source: github.com/exogen/graphql-markdown

  5. Schematic images - each image (eg architecture) is stored as a jpg or png image, but besides that there is an xml of that image unloaded from drawio in google drive. For further work, you can import xml schemes into drawio on google drive, re-create the schemes there and then export the new version of the scheme to png and xml.

Deploy

Just push your changes to github. On changes in the master branch, github actions will automatically prepare the build. If the build is successful, the new version of the static site will be located in the gh-pages branch and deployed automatically.