structor

command module
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

README

Messor Structor: Manage multiple documentation versions with Mkdocs.

GitHub release Build Status

Structor use git branches to create the versions of a documentation, only works with Mkdocs.

To use Structor a project must respect semver and creates a branch for each MINOR and MAJOR version.

Used by Traefik: https://docs.traefik.io

Description

Messor Structor: Manage multiple documentation versions with Mkdocs.

Usage: structor [--flag=flag_argument] [-f[flag_argument]] ...     set flag_argument to flag(s)
   or: structor [--flag[=true|false| ]] [-f[true|false| ]] ...     set true/false to boolean flag(s)

Available Commands:
	version                                            Display the version.
Use "structor [command] --help" for more information about a command.

Flags:
    --debug          Debug mode.                                                               (default "false")
-d, --dockerfile-url Dockerfile URL. [required]                                                
    --exp-branch     Build a branch as experimental.                                           
    --image-name     Docker image name.                                                        (default "doc-site")
    --menu           Menu templates files.                                                     (default "false")
    --menu.css-file  File path of the template of the CSS file use for the multi version menu. 
    --menu.css-url   URL of the template of the CSS file use for the multi version menu.       
    --menu.js-file   File path of the template of the JS file use for the multi version menu.  
    --menu.js-url    URL of the template of the JS file use for the multi version menu.        
-o, --owner          Repository owner. [required]                                              
-r, --repo-name      Repository name. [required]                                               
    --rqts-url       URL of the requirements.txt file.                                     
-h, --help           Print Help (this message) and exit                                     

The environment variable STRUCTOR_LATEST_TAG allow to override the real latest tag name.

Download / CI Integration

curl -sfL https://raw.githubusercontent.com/containous/structor/master/godownloader.sh | bash -s -- -b $GOPATH/bin v1.4.0

Examples

With menu template URL:

sudo ./structor -o containous -r traefik \
--dockerfile-url="https://raw.githubusercontent.com/containous/traefik/master/docs.Dockerfile" \
--menu.js-url="https://raw.githubusercontent.com/containous/structor/master/traefik-menu.js.gotmpl" \
--exp-branch=master --debug

With local menu template file:

sudo ./structor -o containous -r traefik \
--dockerfile-url="https://raw.githubusercontent.com/containous/traefik/master/docs.Dockerfile" \
--menu.js-file="~/go/src/github.com/containous/structor/traefik-menu.js.gotmpl" \
--exp-branch=master --debug

What's Messor Structor mean?

Messor Structor

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL