Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy packages/website/dist --project-name=cacheableorg --branch=main
command: pages deploy packages/website/site/dist --project-name=cacheableorg --branch=main
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"test:services:stop": "docker compose down",
"website:build": "pnpm recursive --filter @cacheable/website run website:build",
"website:serve": "pnpm recursive --filter @cacheable/website run website:serve",
"website:dev": "pnpm recursive --filter @cacheable/website run website:dev",
"build": "pnpm -r build",
"build:list": "pnpm recursive run build",
"clean": "pnpm recursive run clean"
Expand Down
5 changes: 3 additions & 2 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
"license": "MIT",
"private": true,
"scripts": {
"generate-docs": "npx tsx ./src/docs.ts",
"generate-docs": "tsx ./src/docs.ts",
"website:build": "rimraf ./site/docs && pnpm generate-docs && docula build",
"website:serve": "rimraf ./site/docs && pnpm generate-docs && docula serve",
"website:dev": "rimraf ./site/docs && pnpm generate-docs && docula dev",
"clean": "rimraf ./dist"
},
"devDependencies": {
"docula": "0.40.0",
"docula": "^1.12.0",
"tsx": "4.21.0"
}
}
1 change: 1 addition & 0 deletions packages/website/site/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.cache
8 changes: 0 additions & 8 deletions packages/website/site/docula.config.mjs

This file was deleted.

9 changes: 9 additions & 0 deletions packages/website/site/docula.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { DoculaOptions } from "docula";

export const options: Partial<DoculaOptions> = {
githubPath: "jaredwray/cacheable",
siteTitle: "Cacheable",
siteDescription: "Caching for Node.js",
siteUrl: "https://cacheable.org",
themeMode: "light",
};
30 changes: 0 additions & 30 deletions packages/website/site/variables.css

This file was deleted.

11 changes: 1 addition & 10 deletions packages/website/src/docs.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { existsSync } from "node:fs";
import { readdir, readFile, writeFile, mkdir, copyFile } from "node:fs/promises";
import { readdir, readFile, writeFile, mkdir } from "node:fs/promises";

async function main() {

console.log("packages path:" + getRelativePackagePath());

await copyPackages();
await copyGettingStarted();
await copyCacheableSymbol();
};

async function copyPackages() {
Expand All @@ -23,14 +22,6 @@ async function copyPackages() {
};
}

async function copyCacheableSymbol() {
const rootPath = getRelativeRootPath();
const packagesPath = getRelativePackagePath();
const outputPath = `${packagesPath}/website/dist`;
await mkdir(`${outputPath}`, { recursive: true });
await copyFile(`${packagesPath}/website/site/symbol.svg`, `${outputPath}/symbol.svg`);
}

async function copyGettingStarted() {
console.log("Adding Getting Started");
const rootPath = getRelativeRootPath();
Expand Down
Loading
Loading