Skip to content

Commit

Permalink
Fix site navigation bar (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeparlefrancais authored Mar 17, 2024
1 parent 08b85df commit 1df4b13
Showing 32 changed files with 3,751 additions and 3,140 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/site.yml
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ jobs:
cache-dependency-path: "site/package-lock.json"

- name: Install dependencies
run: npm ci --legacy-peer-deps
run: npm ci

- name: Verify code style
run: npm run style-check
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

## Unreleased

## 0.13.1
## 0.13.0

* add `convert` command to convert data files (`json`, `json5`, `yaml` and `toml`) into Lua modules ([#178](https://github.com/seaofvoices/darklua/pull/178))
* remove previously generated files between process runs in watch mode ([#177](https://github.com/seaofvoices/darklua/pull/177))
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -23,7 +23,9 @@ You can try darklua directly into your browser! Check out https://darklua.com/tr

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

```toml
darklua = { github = "seaofvoices/darklua", version = "=0.13.0" }
```

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

1 change: 0 additions & 1 deletion site/content/docs/bundle/index.md
Original file line number Diff line number Diff line change
@@ -321,7 +321,6 @@ harness = false
},
lib = { name = "darklua_core", path = "src/lib.rs" },
package = {
authors = { "jeparlefrancais <[email protected]>" },
description = "Transform Lua scripts",
edition = "2018",
exclude = { "site" },
4 changes: 2 additions & 2 deletions site/gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// custom typefaces
import "typeface-montserrat"
import "typeface-merriweather"
import "@fontsource-variable/comfortaa"

// normalize CSS across browsers
import "./src/normalize.css"
// custom CSS styles
2 changes: 0 additions & 2 deletions site/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -10,8 +10,6 @@ module.exports = {
rulesGroup: "Rules",
},
plugins: [
`gatsby-plugin-material-ui`,
`gatsby-theme-material-ui`,
`gatsby-plugin-image`,
{
resolve: `gatsby-source-filesystem`,
56 changes: 26 additions & 30 deletions site/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -16,28 +16,26 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
const { createPage } = actions

// Get all markdown documentation posts
const result = await graphql(
`
{
allMarkdownRemark(
limit: 1000
filter: { fileAbsolutePath: { regex: "/content/docs/" } }
) {
nodes {
id
fields {
slug
}
const result = await graphql(`
{
allMarkdownRemark(
limit: 1000
filter: { fileAbsolutePath: { regex: "/content/docs/" } }
) {
nodes {
id
fields {
slug
}
}
}
`
)
}
`)

if (result.errors) {
reporter.panicOnBuild(
`There was an error loading the documentation content`,
result.errors
result.errors,
)
return
}
@@ -72,28 +70,26 @@ exports.createPages = async ({ graphql, actions, reporter }) => {
})

// Get all markdown rules information
const ruleResults = await graphql(
`
{
allMarkdownRemark(
limit: 1000
filter: { fileAbsolutePath: { regex: "/content/rules/" } }
) {
nodes {
id
fields {
slug
}
const ruleResults = await graphql(`
{
allMarkdownRemark(
limit: 1000
filter: { fileAbsolutePath: { regex: "/content/rules/" } }
) {
nodes {
id
fields {
slug
}
}
}
`
)
}
`)

if (result.errors) {
reporter.panicOnBuild(
`There was an error loading the documentation content`,
ruleResults.errors
ruleResults.errors,
)
return
}
6 changes: 6 additions & 0 deletions site/gatsby-ssr.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import * as React from "react"
import { getInitColorSchemeScript } from "@mui/material/styles"

export function onRenderBody({ setPreBodyComponents }) {
setPreBodyComponents([getInitColorSchemeScript()])
}
Loading

0 comments on commit 1df4b13

Please sign in to comment.