Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/safrmo/mkpage
A Vuepress utility to quickly populate pages from a Markdown list
https://github.com/safrmo/mkpage
Last synced: 6 days ago
JSON representation
A Vuepress utility to quickly populate pages from a Markdown list
- Host: GitHub
- URL: https://github.com/safrmo/mkpage
- Owner: SaFrMo
- Created: 2017-11-30T16:09:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T16:14:57.000Z (almost 7 years ago)
- Last Synced: 2024-10-11T05:11:07.714Z (about 1 month ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
`node index`
TestS against example.md. Still in development.
Handles parents (via whitespace), developer IDs (parentheses), ignoring "..." pages.
```md
* Parent Page
* Child of Parent (dev-id)
* Top-Level Page
* Child
* Grandchild
* ...
* Another Child
```turns into:
```js
[ { id: 0, title: 'Parent Page', parent: -1, devId: '' },
{ id: 1, title: 'Child of Parent', parent: 0, devId: 'dev-id' },
{ id: 2, title: 'Top-Level Page', parent: -1, devId: '' },
{ id: 3, title: 'Child', parent: 2, devId: '' },
{ id: 4, title: 'Grandchild', parent: 3, devId: '' },
{ id: 5, title: 'Another Child', parent: 2, devId: '' } ]
```TODO: Translate into WordPress page creation