mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-11-14 17:35:35 +01:00
Restructure styleguide configuration file
* Add version of the library * Change colors * Set tocMode to "collapse"
This commit is contained in:
parent
844ea9ea72
commit
e044439646
|
@ -1,23 +1,36 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
* Copyright (C) 2019-2022 CZ.NIC z.s.p.o. (https://www.nic.cz/)
|
||||||
*
|
*
|
||||||
* This is free software, licensed under the GNU General Public License v3.
|
* This is free software, licensed under the GNU General Public License v3.
|
||||||
* See /LICENSE for more information.
|
* See /LICENSE for more information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
const pjson = require("./package.json");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
title: "Foris JS docs",
|
title: "Foris JS Docs",
|
||||||
|
version: `v${pjson.version}`,
|
||||||
|
theme: {
|
||||||
|
color: {
|
||||||
|
link: "#0075a3",
|
||||||
|
linkHover: "#00a2e2",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
tocMode: "collapse",
|
||||||
|
pagePerSection: true,
|
||||||
sections: [
|
sections: [
|
||||||
{
|
{
|
||||||
name: "Introduction",
|
name: "Introduction",
|
||||||
content: "docs/introduction.md",
|
content: "docs/introduction.md",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Development (Linking)",
|
name: "Development",
|
||||||
content: "docs/development.md",
|
content: "docs/development.md",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Components",
|
||||||
|
description: "Set of main components.",
|
||||||
|
sections: [
|
||||||
{
|
{
|
||||||
name: "Foris forms",
|
name: "Foris forms",
|
||||||
components: [
|
components: [
|
||||||
|
@ -34,6 +47,10 @@ module.exports = {
|
||||||
exampleMode: "expand",
|
exampleMode: "expand",
|
||||||
usageMode: "expand",
|
usageMode: "expand",
|
||||||
},
|
},
|
||||||
|
],
|
||||||
|
sectionDepth: 1,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "Bootstrap components",
|
name: "Bootstrap components",
|
||||||
description: "Set of bootstrap components.",
|
description: "Set of bootstrap components.",
|
||||||
|
@ -41,6 +58,7 @@ module.exports = {
|
||||||
exampleMode: "expand",
|
exampleMode: "expand",
|
||||||
usageMode: "expand",
|
usageMode: "expand",
|
||||||
ignore: ["src/bootstrap/constants.js"],
|
ignore: ["src/bootstrap/constants.js"],
|
||||||
|
sectionDepth: 0,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
require: [
|
require: [
|
||||||
|
@ -73,5 +91,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
devServer: {
|
||||||
|
publicPath: "/",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user