Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Joaquin Montes committed Jul 19, 2023
1 parent 2f59188 commit 9e278c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/validate-docs-links/lib/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .github/actions/validate-docs-links/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function getAllMdxFilePaths(): Promise<RouteFragment[]> {
...sidebarReference.map(group => ({...group, slug: path.join('reference/', group.slug)}))
]

let allRoutes: RouteSchema[] = []
let allRoutes: RouteSchema[] = [{source: 'home.mdx', slug: '/', label: 'Homepage'}]
for (const group of config) {
allRoutes = allRoutes.concat(group.routes.map(route => ({
...route,
Expand Down Expand Up @@ -306,7 +306,7 @@ const formatTableRow = (
errorType: ErrorType,
docPath: string
) => {
return `| ${link} | ${errorType} | [/${docPath}](https://github.com/vercel/next.js/blob/${sha}/${docPath}) | \n`
return `| ${link} | ${errorType} | [/${docPath}](https://github.com/meilisearch/documentation/blob/${sha}/${docPath}) | \n`
}

async function updateCheckStatus(
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/validate-docs-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ jobs:
- name: "Run link checker"
run: node ./.github/actions/validate-docs-links/lib
env:
GH_TOKEN: ${{ secrets.MEILI_BOT_GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9e278c4

Please sign in to comment.