Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

New docs version #159

Merged
merged 9 commits into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add version manually for testing
  • Loading branch information
PiffPaffM committed Sep 15, 2021
commit 55764c9f7b3c76666bea9021cfb4dec439a53b3c
2 changes: 2 additions & 0 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ export const getMenu = async (version?: string) => {

export async function getDocsVersions() {
const tagNames = await getHaystackReleaseTagNames();
tagNames.push('v0.10.0')
console.log(tagNames)
return tagNames.filter((tagName) => tagName.startsWith("v"));
}

Expand Down
145 changes: 97 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pages/overview/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
export const getStaticProps: GetStaticProps<StaticPageProps> = async ({
params,
}: GetStaticPropsContext) => {
console.log()
if (!params?.slug || !Array.isArray(params.slug)) {
return {
notFound: true,
Expand Down