Skip to main content

French for Vellum

Project description

Vélin

French for Vellum

Vellum is prepared animal skin or "membrane", typically used as a material for writing on. Parchment is another term for this material, and if vellum is distinguished from this, it is by vellum being made from calfskin, as opposed to that from other animals,[1] or otherwise being of higher quality

install

You may need to get a modified version of numpydoc depending on the stage of development.

# clone this repo
# cd this repo
pip install flit
flit install --symlink

Autoreformat docstrings in minirst/ref.py

velin [--write] path-to-file.py or path-to-dir

Without --write vélin will print the suggested diff, with --write it will attempt to update the files.

options

$ velin --help
usage: velin [-h] [--context context] [--unsafe] [--check] [--no-diff] [--no-color] [--write] path [path ...]

reformat the docstrigns of some file

positional arguments:
  files              Files or folder to reformat

optional arguments:
  -h, --help         show this help message and exit
  --context context  Number of context lines in the diff
  --unsafe           Lift some safety feature (don't fail if updating the docstring is not indempotent
  --check            Print the list of files/lines number and exit with a non-0 exit status, Use it for CI.
  --no-diff          Do not print the diff
  --no-color
  --write            Try to write the updated docstring to the files

other things part of this repo that will need to be pulled out at some point

Not Sphinx

A project which is not sphinx (for current lack of a better name), it is not meant to be a Sphinx replacement either but to explore a different approach; mainly:

  • Be more Python Specific; by knowing more about the language you can usually be smarter and simpler.
  • Separate documentation gathering, and building from rendering.
    • Go from source to IR
    • From IR to final HTML – without extension execution.
  • Potentially offer a docstring reformatter (!not a linter), that can reformat docstrings automatically to follow numpydoc conventions.

This should hopefully allow a conda-forge-like model, where project upload their IR to a given repo, and a single website that contain multiple project documentation (without sub domains) can be build with better cross link between project and efficient page rebuild.

This should also allow to reder documentation on non html backend (think terminal), or provide documentation if IDE (Spyder/Jupyterlab), without having to iframe it.

Usage

Still quite hackish for now:

$ mkdir html $ rm htmls/*.html $ python gen.py

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

velin-0.0.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

velin-0.0.2-py2.py3-none-any.whl (13.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file velin-0.0.2.tar.gz.

File metadata

  • Download URL: velin-0.0.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for velin-0.0.2.tar.gz
Algorithm Hash digest
SHA256 31d9c5e4b2f2d18d0386c3984a783f86417ab02a339640019423f1b310848324
MD5 7d65b7258a8e1f5bb0a67f4b81f813cf
BLAKE2b-256 d96721f3b876898a3747212725508c51f8c8ce280cf45ee6f6732a2969def1c4

See more details on using hashes here.

File details

Details for the file velin-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: velin-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.24.0

File hashes

Hashes for velin-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d6293a3cbf51fb6caac16acad1ce3b30eee0c3b5bae6fc4b44443f9b6bb549f5
MD5 ffd71f970f3fa10390536115a27d91be
BLAKE2b-256 ba510cc113d46324ab63642d5fb26f3d0c9034de88b54f48e1bb30b6c3a2c5b1

See more details on using hashes here.

Supported by

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