Lumocs: A Documentation Theme for Lume
NOTE: THIS IS STILL WORK IN PROGRESS
Welcome to Lumocs β an elegant and intuitive documentation theme tailored specifically for the Lume static site generator. Lumocs places your content front and center, ensuring a smooth and accessible experience for your readers.
π Getting Started
Easily integrate Lumocs into your Lume project by following these steps:
_config.ts
)
1. Setup Configuration (import lume from "lume/mod.ts";
import theme from "lumocs/mod.ts";
const site = lume();
site.use(theme());
export default site;
data.json
)
2. Define Metadata ({
"lang": "en",
"layout": "page.njk",
"metas": {
"title": "=title",
"site": "Site Header",
"lang": "en",
"description": "=description"
}
}
deno.json
)
3. Create Deno Tasks (Ensure youβre using the version of Lume thatβs compatible with Lumocs, which is currently 1.19.0
.
{
"tasks": {
"lume": "echo \"import 'lume/cli.ts'\" | deno run --unstable -A -",
"build": "deno task lume",
"serve": "deno task lume -s --port=8000"
},
"imports": {
"lume/": "https://deno.land/x/lume@v1.19.0/",
"lumocs/": "https://deno.land/x/lumocs@0.0.1/"
}
}
4. Customization Points
Personalize Lumocs for your needs:
_includes/footer.njk
: Add content at the top of the footer._includes/head.njk
: Inject custom elements into the<head>
tag._includes/sidebar.njk
: Append content at the bottom of the sidebar.
5. Crafting Content with Markdown
Use Markdown to design your pages. A basic index.md
example:
---
title: "Overview"
nav_order: 1
---
# Overview
---
Page content
π Generate and Deploy
To generate your site:
deno task lume
This will compile your site and output it to the
_site
directory.
For an automated workflow that handles generation and deployment to GitHub Pages, explore the gh-pages-lume-boilerplate repository.
π Demo Folder
For those who prefer a hands-on approach or want a quick start, check out the demo
folder. It contains a ready-made setup that showcases the capabilities of Lumocs. Simply clone and run!
π License
Lumocs is open-source and licensed under the MIT License. This ensures freedom to use, modify, and distribute as you see fit, within the terms of the license.