Skip to content

Commit

Permalink
Merge pull request #72 from directus/remove-stub
Browse files Browse the repository at this point in the history
Replace stub with description from old docs
  • Loading branch information
phazonoverload authored Dec 16, 2024
2 parents 3a02109 + 0f5da73 commit 53b87d3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions server/utils/remote-content.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { resolve } from 'path';
import fs from 'node:fs/promises';
import { stringifyYAML } from 'confbox';
import formatTitle from '@directus/format-title';
import { consola } from 'consola';
import { db, readItems } from '../../utils/directus';
import fs from "node:fs/promises";

Check failure on line 1 in server/utils/remote-content.ts

View workflow job for this annotation

GitHub Actions / App Lint

Strings must use singlequote
import formatTitle from "@directus/format-title";

Check failure on line 2 in server/utils/remote-content.ts

View workflow job for this annotation

GitHub Actions / App Lint

Strings must use singlequote
import { stringifyYAML } from "confbox";

Check failure on line 3 in server/utils/remote-content.ts

View workflow job for this annotation

GitHub Actions / App Lint

Strings must use singlequote
import { consola } from "consola";

Check failure on line 4 in server/utils/remote-content.ts

View workflow job for this annotation

GitHub Actions / App Lint

Strings must use singlequote
import { resolve } from "path";

Check failure on line 5 in server/utils/remote-content.ts

View workflow job for this annotation

GitHub Actions / App Lint

`path` import should occur before import of `@directus/format-title`

Check failure on line 5 in server/utils/remote-content.ts

View workflow job for this annotation

GitHub Actions / App Lint

Strings must use singlequote
import { db, readItems } from "../../utils/directus";

Check failure on line 6 in server/utils/remote-content.ts

View workflow job for this annotation

GitHub Actions / App Lint

Strings must use singlequote

type PathPart = {
sort: number;
Expand Down Expand Up @@ -73,7 +73,7 @@ async function writePage(
);

const pageConfig = stringifyYAML(config);
const pageContent = `---\n${pageConfig}\n---\n${content || 'STUB'}`;
const pageContent = `---\n${pageConfig}\n---\n${content || 'Explore our resources and powerful data engine to build your projects confidently.'}`;
await fs.mkdir(dirPath, { recursive: true });
await fs.writeFile(`${pagePath}.md`, pageContent);
return;
Expand Down

0 comments on commit 53b87d3

Please sign in to comment.