Skip to main content

A docs generation package for the Sample Programs repo

Project description

The Sample Programs Docs Generator

Previously known as the Sample Programs Wiki Generator, the Sample Programs Docs Generator repo houses the generator.py script which we use in the Sample Programs repository to generate our documentation. The script is automated by a GitHub Actions build in the Sample Programs repo.

If you would like to propose a change, feel free to leverage the issues tab or make a pull request.

How It Works

The generator.py script works by analyzing the information in the Sample Programs repository and storing that information in objects. These objects are then used to generate various documentation pages in Markdown.

What is Automated

Currently, the script does two things:

  • It maintains our entire Sample Programs wiki
  • It maintains all of our READMEs in the Sample Programs repo

In terms of wiki automation, it generates 27 pages: 1 alphabet catalog and 26 alphabet pages.

The alphabet catalog contains a table with links to each alphabet page as well as metadata like the number of scripts and languages per letter. In addition, the alphabet catalog contains the total number of scripts and languages for the entire repo.

Each alphabet page contains a table which lists each language for that particular letter as well as metadata like the number of scripts per language as well as linking to articles and issues.

How to Run

At this time, the wiki generator is hardcoded for the Sample Programs repo. In order to run it, you can install it as a package using pip:

pip install generate_docs

After that, you'll need a copy of the Sample Programs repo:

git clone https://github.com/TheRenegadeCoder/sample-programs.git

Finally, you can build the wiki using the following command:

wikig /path/to/sample-programs/repo/archive

Likewise, you can build the READMEs using the following command:

wikir /path/to/sample-programs/repo/archive

Alternatively, you can clone this repo to run the generate_wiki.py script directly:

python generator.py /path/to/sample-programs/repo/archive

Both solutions are designed to handle repo exploration from the /archive/ directory. If successful, you should begin to see print statements for the various links under test for The Renegade Coder. When finished, you'll have a /wiki/ directory next to your script which contains the wiki. Likewise, all the READMEs should be updated.

At this point, you can push the wiki directly to the Sample Programs wiki.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

generate_docs-2.3.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

generate_docs-2.3.0-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file generate_docs-2.3.0.tar.gz.

File metadata

  • Download URL: generate_docs-2.3.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for generate_docs-2.3.0.tar.gz
Algorithm Hash digest
SHA256 a5abf5052d6fcb56deba2cb53cc0cfa5fa6bc72ea298b7ba19c8795f987be0ad
MD5 8f730141a91b531e9c51a5618688c411
BLAKE2b-256 494cbfaad21660c26350add9175ba9f95b8d9f8c835514984c97a49628fb816e

See more details on using hashes here.

File details

Details for the file generate_docs-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: generate_docs-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for generate_docs-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 554ca180216afb2e4a0a10b9e40819ed546a29f479d4f4a6e9f25da8e9895c16
MD5 21b95174bbdb0546c8f67535718950e6
BLAKE2b-256 23c42561bce76e30c38cd7a3b9cea442b98bb802ca63e7d4ce910ad619013309

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page