+
Skip to content

krewi1/bobril.github.io

 
 

Repository files navigation

How to write article

New article

It is possible to add new article in section More Tutorials. Article can be added as a standard .md file in md/more-tutorials. Just follow naming format with order number and start with heading level 2.

Bobril page source generator

In tools folder run.

npm run generate

This command supports following generated content:

Content

The content of your markdown article is parsed to bobril-page project.

Code Example

Example projects are located in examples. Inner scripts can be used to automatic update of code examples in your article. Just add

<!-- # from-file: ../examples/todo/components/list.tsx -->

```tsx
```

Generator automatically updates your code examples in md files.

Project preview

If you have a project with code example, you can provide a preview of built dist with following syntax:

[Preview example](../examples/todo/dist/index.html)

Path of index.html has to be relative to parsed .md file. Then run again

Generator parses relative paths to your dist, copy the dist content to bobril-page resource folder and use it in generated content of page.

Build bobril page

Page sources are located at bobril-page. In this folder just run

bb b

About

Webpage for Bobril

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.5%
  • HTML 5.0%
  • CSS 2.5%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载