Skip to content

A Sphinx Extension to integrate with the Visuals API. Visuals makes it easier for documentarians to separate visual generation process (like taking screenshots) from the writing process.

cognifloyd/sphinxext-visuals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visuals Extension for Sphinx

This extension interacts with the Visuals API.

the Visuals API should make it easier to integrate visuals into your ReStructuredText documents. The process of creating visuals, like screenshots, clashes with the documentation workflow. The workflows, processes, and tooling for image creation and writing are very different, so the Visuals API makes it easier to tackle each process and workflow separately. Eventually, we'd like to make it possible to automate the creation of visuals, like screenshots, wherever possible. the Visuals API will be the entry point for such automation.

Requirements

  • Sphinx 1.3

Additions to ReStructuredText

Possibly add a visual domain to add things like: - visual:screenshot: - visual:toolbar: - visual:button: - visual:icon:

These would document a visual element in directives, and link to the description in roles.

There might also be a simple way to create substitutions for specific elements automatically to include miniatures of buttons and icons and such... See the visual role for more thinking.

Directives

The <short description> acts like an id for the image. It should be unique per file.

The content block should include additional directives. It could even include the directives .. caption:: and .. legend:: if they make sense for this visual. If a caption and/or legend is included, this acts like a figure directive instead of an image directive.

Everything else will be passed to to get a URI that can be embedded, probably via oEmbed.

Roles

Thanks

The TYPO3 Association funded the initial development of this.

About

A Sphinx Extension to integrate with the Visuals API. Visuals makes it easier for documentarians to separate visual generation process (like taking screenshots) from the writing process.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published