2019-10-07 17:16:27 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
|
|
|
*
|
|
|
|
* This is free software, licensed under the GNU General Public License v3.
|
|
|
|
* See /LICENSE for more information.
|
|
|
|
*/
|
|
|
|
|
|
|
|
const path = require("path");
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
title: "Foris JS docs",
|
|
|
|
sections: [
|
|
|
|
{
|
2022-02-25 15:00:26 +01:00
|
|
|
name: "Introduction",
|
|
|
|
content: "docs/introduction.md",
|
2019-10-07 17:16:27 +02:00
|
|
|
},
|
2020-06-04 22:52:24 +02:00
|
|
|
{
|
|
|
|
name: "Development (Linking)",
|
|
|
|
content: "docs/development.md",
|
|
|
|
},
|
2019-10-07 17:16:27 +02:00
|
|
|
{
|
|
|
|
name: "Foris forms",
|
|
|
|
components: [
|
|
|
|
"src/form/components/ForisForm.js",
|
|
|
|
"src/form/components/alerts.js",
|
|
|
|
"src/form/components/SubmitButton.js",
|
|
|
|
],
|
|
|
|
exampleMode: "expand",
|
|
|
|
usageMode: "expand",
|
|
|
|
},
|
2020-06-04 22:52:24 +02:00
|
|
|
{
|
|
|
|
name: "Alert Context",
|
2020-08-18 15:39:00 +02:00
|
|
|
components: ["src/alertContext/AlertContext.js"],
|
2020-06-04 22:52:24 +02:00
|
|
|
exampleMode: "expand",
|
|
|
|
usageMode: "expand",
|
|
|
|
},
|
2019-10-07 17:16:27 +02:00
|
|
|
{
|
|
|
|
name: "Bootstrap components",
|
|
|
|
description: "Set of bootstrap components.",
|
|
|
|
components: "src/bootstrap/*.js",
|
|
|
|
exampleMode: "expand",
|
|
|
|
usageMode: "expand",
|
2020-08-18 15:39:00 +02:00
|
|
|
ignore: ["src/bootstrap/constants.js"],
|
2019-10-07 17:16:27 +02:00
|
|
|
},
|
|
|
|
],
|
|
|
|
require: [
|
|
|
|
"babel-polyfill",
|
2020-06-04 22:52:24 +02:00
|
|
|
path.join(__dirname, "src/testUtils/mockGlobals"),
|
2020-08-18 15:39:00 +02:00
|
|
|
path.join(
|
|
|
|
__dirname,
|
|
|
|
"node_modules/bootstrap/dist/css/bootstrap.min.css"
|
|
|
|
),
|
|
|
|
path.join(
|
|
|
|
__dirname,
|
|
|
|
"node_modules/@fortawesome/fontawesome-free/css/all.min.css"
|
|
|
|
),
|
2019-10-07 17:16:27 +02:00
|
|
|
],
|
|
|
|
webpackConfig: {
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
loader: "babel-loader",
|
2020-08-18 15:39:00 +02:00
|
|
|
},
|
|
|
|
{
|
2019-10-07 17:16:27 +02:00
|
|
|
test: /\.css$/,
|
|
|
|
use: ["style-loader", "css-loader"],
|
2020-08-18 15:39:00 +02:00
|
|
|
},
|
|
|
|
{
|
2019-10-07 17:16:27 +02:00
|
|
|
test: /\.(jpg|jpeg|png|woff|woff2|eot|ttf|svg)$/,
|
|
|
|
loader: "file-loader",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|