| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Aurelius is a simple library to convert code with markdown comments to markdown pages.
It's meant to be a helpful tool to convert executable and testable code into documentation pages. One of the hard parts of mantaining an updated documentation is making sure the code examples still work. If you write your documentation pages as code, you can execute them to make sure they are always updated.
If you want to run aurelius from the command line only once, you can do:
npx aurelius <file paths>When you run aurelius from the cli, you have two arguments:
yarn global add aureliusor
npm install -g aureliusThen you can run:
aurelius --out <output folder> <file paths>For example:
aurelius --out docs src/**You can also install aurelius as a dependency and use it directly in your code:
In your command line:
yarn add aureliusIn your code:
const aurelius = require('aurelius');
...
const code = await fs.readFile("file.js");
const markdown = aurelius(code, 'javascript');| Back | FazBrowse Home | New Git URL |