docs: flatten side nav hierarchy, remove recipes (#1430)

* style(docs): remove bottom margin in index route

* docs: flatten side nav hierarchy

* docs(accordion): move expandable accordion recipe

* docs(breadcrumb): move breadcrumb trail recipe

* docs: remove recipes
This commit is contained in:
metonym 2022-08-06 13:27:02 -07:00 committed by GitHub
commit e3978e883b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 54 additions and 218 deletions

View file

@ -139,8 +139,6 @@ function carbonify() {
};
}
const NODE_ENV = process.env.NODE_ENV || "production";
module.exports = {
extensions: [".svelte", ".svx"],
preprocess: [
@ -159,14 +157,13 @@ module.exports = {
mdsvex({
remarkPlugins: [plugin, slug, carbonify],
layout: {
recipe: path.join(__dirname, "src/layouts/Recipe.svelte"),
_: path.join(__dirname, "src/layouts/ComponentLayout.svelte"),
},
}),
{
markup({ content, filename }) {
if (/node_modules/.test(filename)) return null;
if (filename.endsWith(".svx") && filename.match(/pages\/(recipes)/)) {
if (filename.endsWith(".svx")) {
const toc = [];
walk(parse(content), {