Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ionic-team/stencil-ssg

Stencil Static Site Generation Utilities
https://github.com/ionic-team/stencil-ssg

ssg static-site static-site-generator stencil stenciljs

Last synced: about 2 months ago
JSON representation

Stencil Static Site Generation Utilities

Awesome Lists containing this project

README

        

# Stencil Static Site Generation Utilities 🏎💨

Utility functions and helpers for building static sites with [Stencil](https://stenciljs.com/):

- Parse Markdown
- Parse HTML
- Parse Yaml Front Matter
- Code Syntax Highlighting with [Prism](https://prismjs.com/)
- Generate site table of contents
- Convert Markdown/HTML into serializable JSX
- Functional Component to render serialized JSX with minimal runtime
- Slugify text

## Syntax Highlighting

Uses [Prism](https://prismjs.com/) at build-time for code block syntax highlighting.
Prism JavaScript is not needed at run-time, however the Prism CSS must be provided by the site.

### Setting Code Language

```typescript
const mph: number = 88;
```

### Adding Code Diffs

```diff-typescript
- const mph: number = 88;
+ let year = 85;
```