0.1.0 • Published 1 year ago

@klef/vivliostyle-theme-klef-lecture v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Vivliostyle Theme Klef Lecture

npm: version npm: total downloads npm: license

For Lecture docs in Klef

Use

In vivliostyle.config.js:

module.exports = {
  theme: 'vivliostyle-theme-klef-lecture',
};

If you want to add your CSS:

module.exports = {
  theme: [
    'vivliostyle-theme-klef-lecture',
    // add your CSS 
  ],
};

Dev

Files

vivliostyle-theme-klef-lecture
├── LICENSE
├── README.md
├── example
│   ├── assets                            // auto generated
│   │   └── Logo (Mark + Type).png        // auto generated
│   └── default.md                        // 🖋
├── package.json
├── theme.css                             // 🖋
└── vivliostyle.config.js

example: Contain sample manuscripts using your theme.

Commands

Run vivliostyle preview to preview your theme.css.

To watch file changes, use preview script.

npm run preview
# or
yarn preview

You can specify your CSS file and manuscript file for preview in vivliostyle.config.js:

module.exports = {
  language: 'en',
  theme: ['node_modules/@vivliostyle/theme-base', '.'],
  entry: [
      'example/default.md',
      // and more...
  ],
}

Run vivliostyle-theme-scripts validate before publishing your package.

npm run validate
# or
yarn validate
0.1.0

1 year ago