This tool can export articles from YouTrack via REST API. Heavily relies on md-to-pdf.
- concatenating articles into one export (pdf and html)
- generate cover page
- generate table of contents
- download all attachments (into a separate folder)
- embed images into articles
- export to PDF version
- export to HTML version
- export to MarkDown version
- warnings about minimal md styles
- customizable styles for page header, footer, custom css.
- Clone (or fork) this repository (no npm package yet)
- prepare:
yarn install
ornpm install
, node v18+ required - make sure that scripts can write
./output
folder - the exported stuff will be placed here - setup your access (create a .env file with YOUTRACK_URL (icluding https://) and YOUTRACK_TOKEN variable)
- run one of the root scripts (one.js, concat.js, project.js)
TODO: documentation
This scripts export one article.
node one.js --id PROJECT-A-1
This script is concatenating an article tree. Pass an article ID to it, it will download and concatenate the articles and attachments recursively down the tree.
node concat.js --id PROJECT-A-1
This script exports all articles one-by-one to a separate export within a project in Youtrack
node project.js --id PROJECT
TODO
All scripts have the same customization options.
TODO
TODO
TODO