Skip to main content

Aglio backend for Foliant documentation generator.

Project description

Aglio Backend for Foliant

Aglio backend generates API documentation from API Blueprint using aglio renderer.

This backend operates the site target.

Note, that aglio is designed to render API Blueprint documents. Blueprint syntax is very close to that of Markdown and you may be tempted to use this backend as a general purpose static site generator, which may work in some cases, but is not guaranteed to work in all of them.

Installation

$ pip install foliantcontrib.aglio

Usage

To use this backend aglio should be installed in your system. Follow the instruction in aglio repo.

To test if you've installed aglio properly run the aglio -h command, which should return you a list of options.

To generate a static website from your Foliant project run the following command:

$ foliant make site --with aglio
Parsing config... Done
Making site...
Done
────────────────────
Result: My_Awesome_Project.aglio

Config

You don't have to put anything in the config to use aglio backend. If it's installed, Foliant detects it.

To customize the output, use options in backend_config.aglio section:

backend_config:
  aglio:
    aglio_path: aglio
    params:
        theme-variables: flatly
        fullWidth: True

aglio_path : Path to the aglio binary. Default: aglio

params : Parameters which will be supplied to the aglio command. To get the list of possible parameters, run aglio -h or check the official docs.

Customizing output

Templates

You can customize the appearence of the static website build by aglio with Jade templates. Aglio has two built-in templates:

  • default — two-column web-page;
  • triple — three-column web-page.

To add your own template, follow the instructions in the official docs.

To specify the template add the theme-template field to the params option:

backend_config:
  aglio:
    params:
        theme-template: triple

Color scheme

You can customize the color scheme of the website by specifying the color scheme name in theme-variables param.

Available built-in color schemes:

  • default,
  • cyborg,
  • flatly,
  • slate,
  • streak.

You can also specify your own scheme in a LESS or CSS file.

backend_config:
  aglio:
    params:
        theme-variables: flatly

Stylesheets

Finally, you can provide custom stylesheets in a LESS or CSS file in theme-style param:

backend_config:
  aglio:
    params:
        theme-style: !path my-style.less

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

foliantcontrib.aglio-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

foliantcontrib.aglio-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file foliantcontrib.aglio-1.0.0.tar.gz.

File metadata

  • Download URL: foliantcontrib.aglio-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.1

File hashes

Hashes for foliantcontrib.aglio-1.0.0.tar.gz
Algorithm Hash digest
SHA256 70d2ba87ad103176d66756635c690dfe79854d67628aa2fd8ff8c6f2d24af6c9
MD5 7fee09516a5c5e741e40f980e5277130
BLAKE2b-256 0af687d6892d11e46f9f59a2370664a912689da0a4a422fd2eac5ec0a768b3a6

See more details on using hashes here.

File details

Details for the file foliantcontrib.aglio-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: foliantcontrib.aglio-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.1

File hashes

Hashes for foliantcontrib.aglio-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb558a11424ec54b253af02585123df00a2747d977e29a912d8464348e69174d
MD5 c295fcac9893df1285c05002819e9b9a
BLAKE2b-256 8a73676474c1955d2d28cd1c545e8a56c6f792a4abbf3238e0c41af677b872ee

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