Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump cross-spawn, nextra and nextra-theme-docs in /docs-site #567

Merged
merged 2 commits into from
Nov 25, 2024
Merged
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
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
Loading