How To: Export Documentation
Purpose
Export current documentation using the Hyaline CLI.
Prerequisite(s)
- Install GitHub App
- Install the CLI Locally
- Have at least some documentation that has been extracted
Steps
1. Download Current Documentation
Go to the latest _Merge
workflow run in your hyaline-github-app-config
repo instance and download the artifact _current-documentation
. Once downloaded extract the folder and note the location of the extracted documentation.db
file for later use.
2. Select Output Format
Hyaline supports exporting extracted documentation in a variety of formats. See CLI or Export reference documentation to see the available options and select an output format.
3. Select Included Documentation
By default Hyaline will export all available documentation. If you wish, you can include or exclude specific documentation by passing in --include
or --exclude
document URIs in the form of document://<source>/<path/to/document>(?tagValue=tagKey)
.
For example:
--include 'document://*/**/*'
will include every document (**/*
) in every source (*
) in the data set (this is the default if no includes are specified)--include 'document://my-app/**/*'
will include every document (**/*
) in themy-app
source--exclude 'document://my-app/old/README.md'
will exclude the documentold/README.md
in themy-app
source--exclude 'document://*/**?type=customer
will exclude any document that has the tagtype=customer
Note that you can include any number of --include
and --exclude
in the export command. Hyaline will export any document that matches at least one include and does not match any exclude.
4. Run Export
Run hyaline export documentation
with your desired arguments to export your documentation.
$ hyaline export documentation --documentation ./documentation.db /
--format json --output ./export.json /
--include 'document://frontend/**/*' /
--exclude 'document://*/**/*?type=customer'
For example, the command above exports the documentation in ./documentation.db
to the file ./export.json
in JSON format. It only includes documentation from the frontend
source, and excludes any documentation with the tag type=customer
.
Next Steps
Read more about how to run the MCP Server or visit the CLI reference.