mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-05 13:17:32 +02:00
Fix lint warnings in site/src/libs/path.ts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import fs from 'node:fs'
|
||||
import path from 'node:path'
|
||||
import { getConfig } from './config'
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
// The docs directory path relative to the root of the project.
|
||||
export const docsDirectory = getConfig().docsDir
|
||||
@@ -33,7 +33,7 @@ export function validateVersionedDocsPaths(distUrl: URL) {
|
||||
|
||||
for (const docsPath of generatedVersionedDocsPaths) {
|
||||
const sanitizedDocsPath = sanitizeVersionedDocsPathForValidation(docsPath)
|
||||
const absoluteDocsPath = fileURLToPath(new URL(path.join( './docs', docs_version, sanitizedDocsPath), distUrl));
|
||||
const absoluteDocsPath = fileURLToPath(new URL(path.join('./docs', docs_version, sanitizedDocsPath), distUrl))
|
||||
|
||||
const docsPathExists = fs.existsSync(absoluteDocsPath)
|
||||
|
||||
|
Reference in New Issue
Block a user