Skip to main content

Tools for documentation and packaging

Project description

epythet

Documentation and packaging tools. Less humdrum, more automation, earlier at the pub.

Full documentation here generated by Epythet.

Getting Started

Follow the Sphinx Installation Guide

pip install epythet

Follow the short Quickstart Guide

About

Tired of learning new frameworks and just need something to quickly display your docstrings in your python files? You've come to the right place. Epythet is built on Sphinx Python Documentation Generator but automatically generates pages for each module .py files and a table of contents.

Publishing to GitHub Pages with GitHub Actions

Step 1: Add the CI workflow

Add workflow .github/workflows/publish-docs.yml to your repo and modify the trigger conditions to suit your needs. Example below will run automatically when the other "Continuous Integration" workflow is completed.

name: GitHub Pages

on:
  workflow_run:
    workflows: ["Continuous Integration"]
    types:
      - completed

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: i2mint/epythet/actions/publish-github-pages@master
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          docs-branch: "gh-pages"
          docs-dir: "./docsrc/_build/html/"
          python-version: "3.10"

Step 2: Enable GitHub Pages

After the CI runs and creates the gh-pages branch, you need to tell GitHub to actually serve it. There are two ways to do this:

The clicky way (for those who enjoy navigating settings menus)

Go to your repo's Settings > Pages, set the source branch to gh-pages and the folder to / (root), then click Save.

image

The fast way (for those who value their time)

If you have the gh CLI installed:

# Check if Pages is set up correctly
epythet check-pages owner/repo

# Enable or fix Pages configuration
epythet configure-pages owner/repo

Or from Python:

from epythet import check_pages_setup, enable_pages

# Diagnose
check_pages_setup('owner/repo')

# Fix
enable_pages('owner/repo')

You can also point these at a local git checkout instead of owner/repo:

epythet check-pages .
epythet configure-pages /path/to/my/project

These tools work with either the gh CLI (recommended) or a GITHUB_TOKEN environment variable.

See CI epythet troubleshooting.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

epythet-0.1.13.tar.gz (84.1 kB view details)

Uploaded Source

Built Distribution

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

epythet-0.1.13-py3-none-any.whl (85.5 kB view details)

Uploaded Python 3

File details

Details for the file epythet-0.1.13.tar.gz.

File metadata

  • Download URL: epythet-0.1.13.tar.gz
  • Upload date:
  • Size: 84.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for epythet-0.1.13.tar.gz
Algorithm Hash digest
SHA256 96cec59e7cdf46b8d158ec7e1cdeb10188a82774d0ac231adb73c62ff4787cc6
MD5 516b001a4be355fa529d8f6596a7e9f8
BLAKE2b-256 32864a26adcc538a331f34e91c514fa59d06306e5ea2ede2acb53b0f7bbba7cc

See more details on using hashes here.

File details

Details for the file epythet-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: epythet-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 85.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for epythet-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 5242fe51a5b2b98978a74f70ca491ca4220a4c5c1d143fcaa65f9bb400f2daa2
MD5 318940d65d3168f1c2b61cbc727c5433
BLAKE2b-256 2183aa6940fe5f643d8d5653fa3af627a89023d1419dcccd26e2215f2b59e990

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