@@ -86,7 +86,7 @@ const config: Config = {
|
||||
docs: {
|
||||
editUrl: 'https://github.com/backstage/backstage/edit/master/docs/',
|
||||
path: '../docs',
|
||||
sidebarPath: 'sidebars.ts',
|
||||
sidebarPath: 'sidebars.js',
|
||||
...(useVersionedDocs
|
||||
? {
|
||||
includeCurrentVersion: true,
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import sidebars from './sidebars';
|
||||
const sidebars = require('./sidebars');
|
||||
|
||||
export default {
|
||||
module.exports = {
|
||||
ci: {
|
||||
collect: {
|
||||
url: [
|
||||
@@ -1,12 +1,9 @@
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const docsDir = path.resolve(
|
||||
path.dirname(new URL(import.meta.url).pathname),
|
||||
'../docs',
|
||||
);
|
||||
const docsDir = path.resolve(__dirname, '../docs');
|
||||
|
||||
export const releases = fs
|
||||
exports.releases = fs
|
||||
.readdirSync(path.resolve(docsDir, 'releases'))
|
||||
.filter(doc => doc.match(/^v\d+\.\d+\.\d+\.md$/))
|
||||
.map(doc => doc.replace(/\.md$/, ''))
|
||||
@@ -1,6 +1,6 @@
|
||||
import { releases } from './releases';
|
||||
const { releases } = require('./releases');
|
||||
|
||||
export default {
|
||||
module.exports = {
|
||||
docs: {
|
||||
Overview: [
|
||||
'overview/what-is-backstage',
|
||||
Reference in New Issue
Block a user