Skip to content

tgabi333/youtrack-article-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yourack Knowledge base Article export to PDF or HTML format

This tool can export articles from YouTrack via REST API. Heavily relies on md-to-pdf.

Features

  • 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.

Usage

  1. Clone (or fork) this repository (no npm package yet)
  2. prepare: yarn install or npm install, node v18+ required
  3. make sure that scripts can write ./output folder - the exported stuff will be placed here
  4. setup your access (create a .env file with YOUTRACK_URL (icluding https://) and YOUTRACK_TOKEN variable)
  5. run one of the root scripts (one.js, concat.js, project.js)

Export customization

TODO: documentation

Scripts

one.js

This scripts export one article.

node one.js --id PROJECT-A-1

concat.js

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

project.js

This script exports all articles one-by-one to a separate export within a project in Youtrack

node project.js --id PROJECT

Output

TODO

Customization

All scripts have the same customization options.

Cover Page

TODO

Styles

TODO

PDF header and footer

TODO

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published