Coder Social home page Coder Social logo

crddocs-generator's Introduction

CRD docs static generator

This is a generator for a static site for CRD documentation based on hasheddans work for doc.crds.dev. Thank you very much!

It is customized for our (Stackable) repositories.

Generating docs

Have a look at https://github.com/stackabletech/crddocs for sample usage. To generate docs you need a yaml configuration file specifying which repos and tags to document. It should look like this (organization > repo > tag):

stackabletech:
airflow-operator:
    - "23.7.0"
    - "23.4.0"
    - "23.1.0"
druid-operator:
    - "23.7.0"
    ...
...

You also need a HTML file template and a directory of static files.

Then, use the build-site.sh shell script to build your site. It contains more instructions on the required arguments.

Implementation notes - differences to the upstream tool

The gitter and doc binaries are simply run in the shell and now accept some commandline arguments. Repos are not indexed on demand anymore, but are instead configured in a yaml configuration file (see above). Both tools use an SQLite3 database for the indexed CRDs, so no Postgres database is necessary. The shell script tying them together simply generates the database in a temporary file.

The link structure is slightly different.

The template and static files have been moved out of this repository, as they are user-specific.

crddocs-generator's People

Contributors

hasheddan avatar fhennig avatar richicoder1 avatar schrej avatar jbw976 avatar khos2ow avatar marccampbell avatar prasek avatar tyron avatar

Stargazers

Robson Vieira avatar

Watchers

Natalie Klestrup Röijezon avatar  avatar

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.