Skip to main content

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

Metadata

Release files for foliantcontrib.aglio 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for foliantcontrib.aglio 1.0.0
File Size Uploaded
foliantcontrib.aglio-1.0.0.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for foliantcontrib.aglio 1.0.0
File Interpreter ABI Platform
foliantcontrib.aglio-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / foliantcontrib.aglio-1.0.0.tar.gz

Download URL foliantcontrib.aglio-1.0.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
70d2ba87ad103176d66756635c690dfe79854d67628aa2fd8ff8c6f2d24af6c9
BLAKE2b-256 checksum
How to use checksums
0af687d6892d11e46f9f59a2370664a912689da0a4a422fd2eac5ec0a768b3a6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / foliantcontrib.aglio-1.0.0-py3-none-any.whl

Download URL foliantcontrib.aglio-1.0.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb558a11424ec54b253af02585123df00a2747d977e29a912d8464348e69174d
BLAKE2b-256 checksum
How to use checksums
8a73676474c1955d2d28cd1c545e8a56c6f792a4abbf3238e0c41af677b872ee
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page