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

feat: upgrade full site search via theme version to 8.0.0 #138

Merged
merged 5 commits into from
Dec 6, 2023
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: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ public
node_modules
artifacts

# ignore files generated for the site search
static/documents.json
static/documents-reduced.json
static/lunr-index.json

.yarn/*
!.yarn/patches
!.yarn/plugins
Expand Down
5 changes: 5 additions & 0 deletions content/config/layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"name": "Contact",
"link": "/contact/",
"show": true
},
{
"name": "Search",
"link": "/search/",
"show": true
}
]
},
Expand Down
5 changes: 5 additions & 0 deletions content/page/search.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"templateKey": "SearchPage",
"title": "Search",
"image": "about.jpg"
}
5 changes: 2 additions & 3 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {
loadProjectPortalThemeOptions,
} = require("@thepolicylab-projectportals/project-portal-content-netlify/utils/theme-options")
} = require("@thepolicylab-projectportals/project-portal-content-decap/utils/theme-options")
const { siteMetadata, themeOptions } = loadProjectPortalThemeOptions()

module.exports = {
Expand All @@ -14,8 +14,7 @@ module.exports = {
faviconPath: `${__dirname}/content/theme-image/favicon.png`,
},
},
`@thepolicylab-projectportals/project-portal-content-netlify`,
`gatsby-plugin-netlify`,
`@thepolicylab-projectportals/project-portal-content-decap`,
`gatsby-plugin-sitemap`,
],
}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
"clean": "gatsby clean"
},
"dependencies": {
"@thepolicylab-projectportals/gatsby-theme-project-portal": "^7.1.3",
"@thepolicylab-projectportals/project-portal-content-netlify": "^7.1.3",
"@thepolicylab-projectportals/gatsby-theme-project-portal": "^8.0.0",
"@thepolicylab-projectportals/project-portal-content-decap": "^8.0.0",
"gatsby": "^5.12.10",
"gatsby-plugin-netlify": "^5.1.1",
"gatsby-plugin-sitemap": "^6.12.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down
Loading