Skip to content

Commit

Permalink
Merge pull request #567 from amelioro/dependabot/npm_and_yarn/docs-si…
Browse files Browse the repository at this point in the history
…te/multi-1f810f95bc

chore(deps): bump cross-spawn, nextra and nextra-theme-docs in /docs-site
  • Loading branch information
keyserj authored Nov 25, 2024
2 parents d853fe1 + 0d5bf64 commit f68c1b9
Show file tree
Hide file tree
Showing 11 changed files with 2,455 additions and 2,024 deletions.
5 changes: 3 additions & 2 deletions docs-site/next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/** @type {import('next-sitemap').IConfig} */
// eslint-disable-next-line functional/immutable-data
module.exports = {
const config = {
siteUrl: "https://ameliorate.app/docs",
generateIndexSitemap: false, // docs sitemap is going to be pointed at by root site's sitemap index; also we shouldn't ever have more than 50k docs pages
changefreq: "daily", // docs don't seem like they need to be indexed more than once a day
priority: 0.5, // match the default of the official sitemaps protocol https://www.sitemaps.org/protocol.html
autoLastmod: false, // if true, it sets the lastmod for all pages to the time of each build, will be almost always incorrect, because docs don't change nearly as often as the project is deployed
};

export default config;
7 changes: 4 additions & 3 deletions docs-site/next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const withNextra = require("nextra")({
import nextra from "nextra";

const withNextra = nextra({
theme: "nextra-theme-docs",
themeConfig: "./theme.config.tsx",
});

// eslint-disable-next-line functional/immutable-data -- when trying to use ESM, nextra encounters error "The requested module 'remark-reading-time' does not provide an export named 'default'"
module.exports = withNextra({
export default withNextra({
basePath: "/docs", // bit annoying, but seems like this is needed in order to proxy the main app url/docs to here https://answers.netlify.com/t/support-guide-can-i-deploy-multiple-repositories-in-a-single-site/179
images: {
remotePatterns: [
Expand Down
Loading

0 comments on commit f68c1b9

Please sign in to comment.