recipage
v0.1.1
Published
:page_with_curl: Recipe-Page: Turn a markdown file into one simple page
Downloads
10
Readme
:page_with_curl: reci(pe)page: Turn a markdown file into one simple page
Intro
recipage generates your one page website using markdown on the fly. Unlike GitBook or Jekyll, it does not generate static html files. Unlike docsify or docute, it only support one page. To start using it, all you need to do is create an index.html
and deploy to anywhere you want.
Demo
- https://suka.js.org/recipage/
Usage
Manually create index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Recipage</title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<meta name="theme-color" content="#f5f5f5">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/recipage/dist/recipage.min.css">
</head>
<body>
<div id="app"></div>
</body>
<script>
window.$recipage = {
// Config here...
}
</script>
<script src="https://cdn.jsdelivr.net/npm/recipage"></script>
</html>
Configurations
window.$recipage = {
url: './README.md', // The URL of markdown file
github: 'https://github.com/SukkaW/recipage', // The github-corner link (not necessary)
footer: { // The footer config (not necessary)
title: 'Recipage', // The title of the page that will be show at the footer
logo: 'https://cdn.jsdelivr.net/npm/[email protected]' // A small image that will be show at the footer
},
callback: function() { // The callback function after rendering. For highlight or MathJax (not necessary)
console.log('Hey')
}
}
Author
recipage © Sukka, Released under the MIT License. Authored and maintained by Sukka with help from contributors (list).
Personal Website · Blog · GitHub @SukkaW · Telegram Channel @SukkaChannel · Twitter @isukkaw · Keybase @sukka