Tools for generating a versioned documentation site from YARD docs.
SleepingKingStudios::Docs uses the thor gem to power its CLI.
The following CLI tasks are used to generate and update the documentation for your project.
The docs:generate task generates the documentation files for each Ruby file in your project. It does not update any existing files by default, so if you have made changes to existing code use the docs:update command (below) or use the --force command line option.
bundle exec thor docs:generate
The task defines the following options:
--docs-path=value option allows customizing the root directory for the generated documentation files. The default value is ./docs.--dry-run flag is set, the task will not make any changes to the filesystem.--force flag is set, the task will overwrite previously generated files.--skip-verbose flag is set, the task will not output its status to STDOUT.--version=value option allows setting a version for the generated documentation. If set, the files will be generated in namespaced directories and set the version flag in the YAML files.The docs:update task generates and updates the documentation files for each Ruby file in your project. It will update any existing documentation files.
bundle exec thor docs:update
The task defines the following options:
--docs-path=value option allows customizing the root directory for the generated documentation files. The default value is ./docs.--dry-run flag is set, the task will not make any changes to the filesystem.--skip-verbose flag is set, the task will not output its status to STDOUT.--version=value option allows setting a version for the generated documentation. If set, the files will be generated in namespaced directories and set the version flag in the YAML files.The docs:install task installs the Jekyll application.
bundle exec thor docs:install --name="Orichalcum" --description="A real gem." --repository="www.example.com"
The task defines the following options:
--description=value option allows for setting a description for the library. This is used when generating the template files.--docs-path=value option allows customizing the root directory for the generated documentation files. The default value is ./docs.--dry-run flag is set, the task will not make any changes to the filesystem.--name=value option allows for setting a name for the library. This is used when generating the template files.--repository=value option allows for setting a repository URL for the library. This is used when generating the template files.--root-path=value option allows setting the root directory for the library. It is used when updating the .gitignore file. The default value is the working directory.--skip-verbose flag is set, the task will not output its status to STDOUT.The docs:install:templates command installs or updates the Jekyll templates for YARD objects.
bundle exec thor docs:install:templates
The docs:install command defines the following options:
--docs-path=value option allows customizing the root directory for the generated documentation files. The default value is ./docs.--dry-run flag is set, the task will not make any changes to the filesystem.--force flag is set, the task will overwrite any existing templates.--skip-verbose flag is set, the task will not output its status to STDOUT.The docs:install:workflow command installs or updates the GitHub actions workflow for deploying to Pages.
bundle exec thor docs:install:workflow
The docs:install:workflow command defines the following options:
--dry-run flag is set, the task will not make any changes to the filesystem.--force flag is set, the task will overwrite an existing workflow.--root-path=value option allows setting the root directory for the library. The default value is the working directory.--skip-verbose flag is set, the task will not output its status to STDOUT.Back to Documentation