Skip to content

Commit 1df4b13

Browse files
Fix site navigation bar (#180)
1 parent 08b85df commit 1df4b13

32 files changed

+3751
-3140
lines changed

.github/workflows/site.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
cache-dependency-path: "site/package-lock.json"
2828

2929
- name: Install dependencies
30-
run: npm ci --legacy-peer-deps
30+
run: npm ci
3131

3232
- name: Verify code style
3333
run: npm run style-check

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Unreleased
44

5-
## 0.13.1
5+
## 0.13.0
66

77
* add `convert` command to convert data files (`json`, `json5`, `yaml` and `toml`) into Lua modules ([#178](https://github.com/seaofvoices/darklua/pull/178))
88
* remove previously generated files between process runs in watch mode ([#177](https://github.com/seaofvoices/darklua/pull/177))

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ You can try darklua directly into your browser! Check out https://darklua.com/tr
2323

2424
If you are already using Foreman, then installing darklua is as simple as adding this line in the foreman.toml file:
2525

26+
```toml
2627
darklua = { github = "seaofvoices/darklua", version = "=0.13.0" }
28+
```
2729

2830
## [Aftman](https://github.com/LPGhatguy/aftman)
2931

site/content/docs/bundle/index.md

-1
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ harness = false
321321
},
322322
lib = { name = "darklua_core", path = "src/lib.rs" },
323323
package = {
324-
authors = { "jeparlefrancais <jeparlefrancais21@gmail.com>" },
325324
description = "Transform Lua scripts",
326325
edition = "2018",
327326
exclude = { "site" },

site/gatsby-browser.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// custom typefaces
2-
import "typeface-montserrat"
3-
import "typeface-merriweather"
2+
import "@fontsource-variable/comfortaa"
3+
44
// normalize CSS across browsers
55
import "./src/normalize.css"
66
// custom CSS styles

site/gatsby-config.js

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ module.exports = {
1010
rulesGroup: "Rules",
1111
},
1212
plugins: [
13-
`gatsby-plugin-material-ui`,
14-
`gatsby-theme-material-ui`,
1513
`gatsby-plugin-image`,
1614
{
1715
resolve: `gatsby-source-filesystem`,

site/gatsby-node.js

+26-30
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,26 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
1616
const { createPage } = actions
1717

1818
// Get all markdown documentation posts
19-
const result = await graphql(
20-
`
21-
{
22-
allMarkdownRemark(
23-
limit: 1000
24-
filter: { fileAbsolutePath: { regex: "/content/docs/" } }
25-
) {
26-
nodes {
27-
id
28-
fields {
29-
slug
30-
}
19+
const result = await graphql(`
20+
{
21+
allMarkdownRemark(
22+
limit: 1000
23+
filter: { fileAbsolutePath: { regex: "/content/docs/" } }
24+
) {
25+
nodes {
26+
id
27+
fields {
28+
slug
3129
}
3230
}
3331
}
34-
`
35-
)
32+
}
33+
`)
3634

3735
if (result.errors) {
3836
reporter.panicOnBuild(
3937
`There was an error loading the documentation content`,
40-
result.errors
38+
result.errors,
4139
)
4240
return
4341
}
@@ -72,28 +70,26 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
7270
})
7371

7472
// Get all markdown rules information
75-
const ruleResults = await graphql(
76-
`
77-
{
78-
allMarkdownRemark(
79-
limit: 1000
80-
filter: { fileAbsolutePath: { regex: "/content/rules/" } }
81-
) {
82-
nodes {
83-
id
84-
fields {
85-
slug
86-
}
73+
const ruleResults = await graphql(`
74+
{
75+
allMarkdownRemark(
76+
limit: 1000
77+
filter: { fileAbsolutePath: { regex: "/content/rules/" } }
78+
) {
79+
nodes {
80+
id
81+
fields {
82+
slug
8783
}
8884
}
8985
}
90-
`
91-
)
86+
}
87+
`)
9288

9389
if (result.errors) {
9490
reporter.panicOnBuild(
9591
`There was an error loading the documentation content`,
96-
ruleResults.errors
92+
ruleResults.errors,
9793
)
9894
return
9995
}

site/gatsby-ssr.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react"
2+
import { getInitColorSchemeScript } from "@mui/material/styles"
3+
4+
export function onRenderBody({ setPreBodyComponents }) {
5+
setPreBodyComponents([getInitColorSchemeScript()])
6+
}

0 commit comments

Comments
 (0)