Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"workspaceFolder": "/site",
"workspaceMount": "source=${localWorkspaceFolder},target=/site,type=bind",
"forwardPorts": [4321],
"postStartCommand": "npm run dev",
"postStartCommand": "npm install -verbose && npm run dev",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 16.14.2
node-version: 24.14.0
- name: Install dependencies
run: npm install
- name: Prettier
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:iron-trixie-slim
FROM node:24-trixie-slim

WORKDIR /site

Expand All @@ -7,7 +7,7 @@ COPY package*.json /site/
RUN apt-get update && apt-get upgrade -y
RUN apt-get install git curl -y

RUN npm install
# RUN npm install

# Install Vale
RUN set -eux; \
Expand Down
39 changes: 39 additions & 0 deletions annotate_vale.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const fs = require('fs');
const path = require('path');

const warningsFile = '/site/.vale/temp/vale-warnings.json';

// Load Vale JSON output
const data = JSON.parse(fs.readFileSync(warningsFile, 'utf8'));

for (const filePath in data) {
const issues = data[filePath];

// Sort highest to lowest line number so inserts don't shift later lines
issues.sort((a, b) => b.Line - a.Line);

const absPath = path.resolve(filePath);

if (!fs.existsSync(absPath)) {
console.error(`File not found: ${absPath}`);
continue;
}

let lines = fs.readFileSync(absPath, 'utf8').split('\n');

issues.forEach(issue => {
const line = issue.Line;
const check = issue.Check;
const msg = issue.Message;

const comment = `<!-- Vale(${check}): ${msg} -->`;

// Insert comment above the offending line (line numbers are 1-based)
lines.splice(line - 1, 0, comment);
});

fs.writeFileSync(absPath, lines.join('\n'));
console.log(`Annotated: ${filePath}`);
}

console.log("Done!");
28 changes: 18 additions & 10 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,28 +75,28 @@ export default defineConfig({
starlightLinksValidator({
errorOnRelativeLinks: true,
}),

],
customCss: ["./src/styles/custom.css"],
social: {
github: "https://github.com/thoth-tech",
},
social: [
{ icon: 'github', label: 'GitHub', href: 'https://github.com/thoth-tech' },
],
logo: {
src: "./public/favicon.svg",
},
components: {
// MarkdownContent: "starlight-blog/overrides/MarkdownContent.astro",
// Sidebar: "starlight-blog/overrides/Sidebar.astro",
// ThemeSelect: "starlight-blog/overrides/ThemeSelect.astro",
},
// components: {
// MarkdownContent: "starlight-blog/overrides/MarkdownContent.astro",
// Sidebar: "starlight-blog/overrides/Sidebar.astro",
// ThemeSelect: "starlight-blog/overrides/ThemeSelect.astro",
// },
sidebar: [
{
label: "Resources",
collapsed: false,
items: [
{
label: "Introduction",
link: "/resources/introduction"
link: "/resources/introduction/"
},
{
label: "Thoth Tech Technology Stack",
Expand All @@ -116,6 +116,14 @@ export default defineConfig({
collapsed: true,
autogenerate: { directory: "Resources/Quality Assurance" },
},
{
label: "Writing Style Guide",
link: "/resources/writing-style-guide"
},
{
label: "Documenting for Thoth Tech",
link: "/resources/documenting-for-thoth-tech"
},
{
label: "Frequently Asked Questions (FAQ)",
link: "/resources/faq"
Expand Down
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build]
command = "npm run build"
publish = "dist/"

[build.environment]
NODE_VERSION = "24"
Loading
Loading