Skip to content

Commit

Permalink
Merge branch 'amelioro:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
2div authored Dec 1, 2024
2 parents 51b9710 + 022b90c commit d676d85
Show file tree
Hide file tree
Showing 38 changed files with 2,994 additions and 2,115 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 d676d85

Please sign in to comment.