Skip to main content

A wiki generation package for the Sample Programs repo

Project description

The Sample Programs Wiki Generator

Currently, the Sample Programs Wiki Generator repo houses the generate-wiki.py script which we use in the Sample Programs repository to generate our wiki documentation. The script is automated by a Travis CI 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 generate_wiki.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 wiki pages in Markdown.

What is Automated

Currently, the script 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 meta data 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 meta data like the number of scripts per language and links 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'll need a copy of the Sample Programs repo:

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

Then, you'll want to run the generate_wiki.py script as follows:

python generate-wiki.py /path/to/sample-programs/repo/archive

The solution is designed to then 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.

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_wiki-1.0.1.tar.gz (4.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_wiki-1.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file generate_wiki-1.0.1.tar.gz.

File metadata

  • Download URL: generate_wiki-1.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for generate_wiki-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e0cc4e226cb80501be53ece3ceb7a079e928ea761fd63b28755381fe89374dc6
MD5 924c55f6c919e07db4de72fc59a0e98b
BLAKE2b-256 06e9a29cccf2ee32ed4d75d3acc83a538328333463fcd0db65cb1586ab61bc6e

See more details on using hashes here.

File details

Details for the file generate_wiki-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: generate_wiki-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3

File hashes

Hashes for generate_wiki-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e03339f4ec45aa4c0bab1070625755187897c68db9ffb4b89531096ab02d1b72
MD5 2acb826842d5cc4d063272ce05372fc7
BLAKE2b-256 bf6d98deb1b9455f943db855db0307863de0b0c40ac2b0f4fdcc46f48ee5a864

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