Sassdoc To Markdown
Converts sass files using sassdoc syntax to markdown files, see 'lib/defaults.js' for settings.
- Compiled Sass examples (Dart Sass)
- Compiled examples can be configured to use your own implementation, see options (ie. if using node-sass for example)
- Content blocks between documented items
- Custom group display names by adding dash ie
/// @group util - Shared Utilities
- Group descriptions pulled from lines after group definition (you can also use content blocks to describe groups)
- Ability to override annotation and page templates
Example Usage
import { resolve, dirname } from "path";
import { fileURLToPath } from "url";
import { outputPages } from "@ulu/sassdoc-to-markdown";
const __dirname = dirname(fileURLToPath(import.meta.url));
(async () => {
await outputPages({
dist: resolve(__dirname, "docs/"),
dir: resolve(__dirname, "src/sass/"),
pathBase: "/sass/"
});
})();
Compiled Sassdoc Example
@mixin print-color($value) {
.test {
color: $value;
}
}
Changes
Change Log