Skip to content

Commit

Permalink
gh action node cache npm
Browse files Browse the repository at this point in the history
  • Loading branch information
speier committed Dec 4, 2024
1 parent e29c592 commit 2c6dd11
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: latest
cache: yarn
cache: npm
cache-dependency-path: website/package-lock.json

- name: Install dependencies and build website
run: |
Expand Down
43 changes: 21 additions & 22 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config

import {themes as prismThemes} from 'prism-react-renderer';
import { themes as prismThemes } from 'prism-react-renderer'

// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

Expand Down Expand Up @@ -34,7 +34,7 @@ const config = {
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
locales: ['en']
},

presets: [
Expand All @@ -43,7 +43,7 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: './sidebars.js',
sidebarPath: './sidebars.js'
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl: 'https://github.com/moonwalker/comet/tree/main/website/',
Expand All @@ -52,22 +52,21 @@ const config = {
showReadingTime: true,
feedOptions: {
type: ['rss', 'atom'],
xslt: true,
xslt: true
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/moonwalker/comet/tree/main/website/',
editUrl: 'https://github.com/moonwalker/comet/tree/main/website/',
// Useful options to enforce blogging best practices
onInlineTags: 'warn',
onInlineAuthors: 'warn',
onUntruncatedBlogPosts: 'warn',
onUntruncatedBlogPosts: 'warn'
},
theme: {
customCss: './src/css/custom.css',
},
}),
],
customCss: './src/css/custom.css'
}
})
]
],

themeConfig:
Expand All @@ -79,22 +78,22 @@ const config = {
title: 'Comet',
logo: {
alt: 'Comet Logo',
src: 'img/logo.png',
src: 'img/logo.png'
},
items: [
{
type: 'docSidebar',
sidebarId: 'tutorialSidebar',
position: 'left',
label: 'Docs',
label: 'Docs'
},
// {to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/moonwalker/comet',
label: 'GitHub',
position: 'right',
},
],
position: 'right'
}
]
},
footer: {
style: 'dark',
Expand Down Expand Up @@ -139,13 +138,13 @@ const config = {
// ],
// },
// ],
copyright: `Copyright © ${new Date().getFullYear()} Moon & Walker Technologies`,
copyright: `Copyright © ${new Date().getFullYear()} Moon & Walker Technologies`
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
darkTheme: prismThemes.dracula
}
})
}

export default config;
export default config

0 comments on commit 2c6dd11

Please sign in to comment.