-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
92 lines (90 loc) · 2.83 KB
/
docusaurus.config.js
File metadata and controls
92 lines (90 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
const deployUrl = "https://weso.github.io"
const baseUrl = "/rdfshape-api/"
const scalaDocUrl = `${deployUrl}${baseUrl}api/es/weso/rdfshape/`
const apiDocsUrl = "https://app.swaggerhub.com/apis-docs/weso/RDFShape/"
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
/** @type {import("@docusaurus/types").DocusaurusConfig} */
module.exports = {
title: "RDFShape API",
tagline: "Processing and validation of RDF with ShEx, SHACL and more",
organizationName: "weso", // GitHub org/user name.
projectName: "rdfshape-api", // Repo name.
url: deployUrl,
baseUrl: baseUrl,
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "favicon.ico",
trailingSlash: true,
customFields: {
scalaDocUrl, apiDocsUrl
},
themeConfig: {
image: "img/preview.png",
colorMode: {
defaultMode: "light",
disableSwitch: false,
respectPrefersColorScheme: true
},
navbar: {
title: "RDFShape API", logo: {
alt: "RDFShape API - WESO", src: "img/logo-weso.png"
}, items: [// Web docs
{
to: "/docs", label: "Web docs", position: "left"
}, // Scaladoc
{
href: scalaDocUrl, label: "Scaladoc", position: "left"
}, // API Docs in SwaggerHub
{
href: "https://app.swaggerhub.com/apis-docs/weso/RDFShape",
label: "SwaggerHub",
position: "right"
}, // Link to repo
{
href: "https://github.com/weso/rdfshape-api",
label: "GitHub",
position: "right"
}]
}, footer: {
style: "light",
logo: {
alt: "RDFShape API - WESO",
src: "img/logo-weso-footer.png",
href: "https://www.weso.es/"
},
links: [{
title: "About us", items: [{
label: "WESO Research Group", to: "https://www.weso.es/"
}, {
label: "University of Oviedo", to: "https://www.uniovi.es/"
}]
}, {
title: "Community", items: [{
label: "GitHub", to: "https://github.com/weso"
}, {
label: "Twitter", to: "https://twitter.com/wesoviedo"
}]
}, {
title: "Further work", items: [{
label: "RDFShape project", to: "https://github.com/weso/rdfshape"
}, {
label: "More software by WESO", to: "https://www.weso.es/#software"
}]
}],
copyright: `Copyright © ${new Date().getFullYear()} WESO Research Group`
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme
}
},
presets: [["@docusaurus/preset-classic", {
docs: {
path: "../rdfshape-docs/target/mdoc",
sidebarPath: require.resolve("./sidebars.js")
}, blog: false, theme: {
customCss: require.resolve("./src/css/custom.css")
}, sitemap: {}
}]]
};