Skip to content

Commit

Permalink
chore: rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Oct 28, 2023
1 parent 1feab5c commit bbb229c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/node/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { task } from '../utils/task'
import { bundle } from './bundle'
import { generateSitemap } from './generateSitemap'
import { renderPage } from './render'
import { checkIdsAndAnchorHrefs } from './checkAnchorRefs'
import { checkIdsAndAnchorHrefs } from './checkIdsAndAnchorHrefs'

export async function build(
root?: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function* collectErrors(siteConfig: SiteConfig) {
const content = parse(
await fs.promises.readFile(resolve(outDir, entry.toString()), 'utf8')
)
// collect id headings and href anchors
// collect ids and href anchors
walkSync(content, (node) => {
if (node.type === ELEMENT_NODE) {
const id = node.attributes.id
Expand All @@ -64,7 +64,7 @@ export async function* collectErrors(siteConfig: SiteConfig) {
})
// check for local hrefs and external links
for (const href of localLinks) {
// 1) check for local heading ids
// 1) check for local ids
if (href[0] === '#') {
const id = href.slice(1)
if (!localIds.has(id))
Expand Down

0 comments on commit bbb229c

Please sign in to comment.