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/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
env:
RDLABO_DOCS_REF: ${{ github.event.pull_request.head.sha || github.sha }}
RDLABO_DOCS_REPOSITORY_URL: ${{ github.event.pull_request.head.repo.html_url || 'https://github.com/rdlabo-dev/docs' }}
RDLABO_DOCS_REPOSITORY_URL: ${{ github.event.pull_request.head.repo.html_url || 'https://github.com/rdlabo-dev/website' }}
steps:
- uses: actions/checkout@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
`docs:generate` **always** loads English from GitHub raw — never from the local filesystem. Resolution order:

1. Package repository: `docs/{file}`, `{sourceDirectory}/docs/{file}`, then `README.md` for landings.
2. Portal repository (`rdlabo-dev/docs`): `src/{sourceDirectory}/docs/{file}`.
2. Portal repository (`rdlabo-dev/website`): `src/{sourceDirectory}/docs/{file}`.

For `@capacitor-community/admob` and rdlabo Capacitor plugins, English lives in the **package repository only** — do not copy those English files into `src/{project}/docs/`.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Documentation portal for personal open source projects created and maintained by

The `rdlabo` name is also used by 一般社団法人リレーションデザイン研究所, but every OSS project documented here is owned and maintained personally by rdlabo. This portal and its projects are not activities of that incorporated association.

Production is `docs.rdlabo.dev` on Cloudflare Workers Static Assets. The repository is `rdlabo-dev/docs`.
Production is `docs.rdlabo.dev` on Cloudflare Workers Static Assets. The repository is `rdlabo-dev/website`.

## Current projects

Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
} from './package-markdown';

const root = resolve(process.cwd());
const docsRepositoryUrl = 'https://github.com/rdlabo-dev/docs';
const docsRepositoryUrl = 'https://github.com/rdlabo-dev/website';

const stripHtml = (value: string) => value.replace(/<\/?code>/g, '`').replace(/<[^>]+>/g, '');
const tagText = (tags: any[], name: string) => tags?.find((tag) => tag.name === name)?.text ?? '';
Expand Down
4 changes: 2 additions & 2 deletions scripts/package-repository.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test('builds raw and source labels for repository docs', () => {
repositorySourceLabel(repositoryUrl, 'main', 'README.md'),
'capacitor-community/admob@main/README.md',
);
assert.equal(CANONICAL_DOCS_PORTAL_REPOSITORY_URL, 'https://github.com/rdlabo-dev/docs');
assert.equal(CANONICAL_DOCS_PORTAL_REPOSITORY_URL, 'https://github.com/rdlabo-dev/website');
assert.equal(
DOCS_PORTAL_REPOSITORY_URL,
process.env['RDLABO_DOCS_REPOSITORY_URL'] ?? CANONICAL_DOCS_PORTAL_REPOSITORY_URL,
Expand All @@ -75,7 +75,7 @@ test('keeps fork-fetched portal pages editable in the canonical repository', ()
content: '# API',
repositoryPath: 'src/example/docs/api.md',
repositoryRef: 'main',
repositoryUrl: 'https://github.com/rdlabo-dev/docs',
repositoryUrl: 'https://github.com/rdlabo-dev/website',
},
);
});
2 changes: 1 addition & 1 deletion scripts/package-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface RepositoryCoordinates {
repo: string;
}

export const CANONICAL_DOCS_PORTAL_REPOSITORY_URL = 'https://github.com/rdlabo-dev/docs';
export const CANONICAL_DOCS_PORTAL_REPOSITORY_URL = 'https://github.com/rdlabo-dev/website';
export const DOCS_PORTAL_REPOSITORY_URL =
process.env['RDLABO_DOCS_REPOSITORY_URL'] ?? CANONICAL_DOCS_PORTAL_REPOSITORY_URL;

Expand Down
4 changes: 2 additions & 2 deletions scripts/site-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ test('rdlabo brand logo title is English-only', async () => {
test('uses the rdlabo-dev GitHub owner throughout site sources', async () => {
const legacyOwner = ['rdlabo', 'team'].join('-');
const legacyDocsRepository = ['ionic-jp', 'capacitor-plugins-docs'].join('/');
const docsRepositoryUrl = 'https://github.com/rdlabo-dev/docs';
const docsRepositoryUrl = 'https://github.com/rdlabo-dev/website';
const roots = [
new URL('../README.md', import.meta.url),
new URL('../scripts/', import.meta.url),
Expand Down Expand Up @@ -150,7 +150,7 @@ test('uses the rdlabo-dev GitHub owner throughout site sources', async () => {
assert.match(generateDocs, /\$\{docsRepositoryUrl\}\/edit\/main\//);

const readme = await readFile(new URL('../README.md', import.meta.url), 'utf8');
assert.match(readme, /`rdlabo-dev\/docs`/);
assert.match(readme, /`rdlabo-dev\/website`/);
assert.doesNotMatch(readme, /later rollout/);
});

Expand Down
8 changes: 4 additions & 4 deletions src/app/docs/github-stars.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ describe('GitHubStarsService', () => {
vi.stubGlobal('fetch', fetchMock);

const service = TestBed.inject(GitHubStarsService);
await expect(service.count('https://github.com/rdlabo-dev/docs')).resolves.toBe(42);
await expect(service.count('https://github.com/rdlabo-dev/docs')).resolves.toBe(42);
expect(fetchMock).toHaveBeenCalledWith('https://api.github.com/repos/rdlabo-dev/docs', {
await expect(service.count('https://github.com/rdlabo-dev/website')).resolves.toBe(42);
await expect(service.count('https://github.com/rdlabo-dev/website')).resolves.toBe(42);
expect(fetchMock).toHaveBeenCalledWith('https://api.github.com/repos/rdlabo-dev/website', {
headers: { Accept: 'application/vnd.github+json' },
});
expect(fetchMock).toHaveBeenCalledTimes(1);
Expand All @@ -30,6 +30,6 @@ describe('GitHubStarsService', () => {
expect(fetchMock).not.toHaveBeenCalled();

fetchMock.mockResolvedValue({ ok: false });
await expect(service.count('https://github.com/rdlabo-dev/docs')).resolves.toBeUndefined();
await expect(service.count('https://github.com/rdlabo-dev/website')).resolves.toBeUndefined();
});
});
20 changes: 10 additions & 10 deletions src/app/generated/projects/admob.ja.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/readme.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/readme.md"
},
{
"title": "初期化",
Expand All @@ -124,7 +124,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/configuration.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/configuration.md"
},
{
"title": "同意管理",
Expand Down Expand Up @@ -208,7 +208,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/consent.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/consent.md"
},
{
"title": "バナー広告",
Expand Down Expand Up @@ -267,7 +267,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/banner.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/banner.md"
},
{
"title": "インタースティシャル広告",
Expand Down Expand Up @@ -301,7 +301,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/interstitial.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/interstitial.md"
},
{
"title": "リワード広告",
Expand Down Expand Up @@ -375,7 +375,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/rewarded.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/rewarded.md"
},
{
"title": "アプリ起動時広告",
Expand Down Expand Up @@ -409,7 +409,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/app-open.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/app-open.md"
},
{
"title": "広告イベント",
Expand Down Expand Up @@ -653,7 +653,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/events.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/events.md"
},
{
"title": "テスト",
Expand Down Expand Up @@ -712,7 +712,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/testing.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/testing.md"
},
{
"title": "移行",
Expand Down Expand Up @@ -751,7 +751,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/admob/docs/ja/migration.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/admob/docs/ja/migration.md"
},
{
"title": "API",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-brotherprint/docs/ja/readme.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-brotherprint/docs/ja/readme.md"
},
{
"title": "インストール",
Expand Down Expand Up @@ -105,7 +105,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-brotherprint/docs/ja/installation.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-brotherprint/docs/ja/installation.md"
},
{
"title": "Search",
Expand Down Expand Up @@ -169,7 +169,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-brotherprint/docs/ja/search.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-brotherprint/docs/ja/search.md"
},
{
"title": "Print",
Expand All @@ -193,7 +193,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-brotherprint/docs/ja/print.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-brotherprint/docs/ja/print.md"
},
{
"title": "Events",
Expand Down Expand Up @@ -242,7 +242,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-brotherprint/docs/ja/events.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-brotherprint/docs/ja/events.md"
},
{
"title": "API",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-codescanner/docs/ja/readme.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-codescanner/docs/ja/readme.md"
},
{
"title": "CodeScanner",
Expand Down Expand Up @@ -115,7 +115,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-codescanner/docs/ja/code-scanner.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-codescanner/docs/ja/code-scanner.md"
},
{
"title": "API",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-docgen/docs/api.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-docgen/docs/api.md"
}
]
} as const;
6 changes: 3 additions & 3 deletions src/app/generated/projects/capacitor-docgen.ja.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-docgen/docs/ja/getting-started.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-docgen/docs/ja/getting-started.md"
},
{
"title": "本家との差分",
Expand Down Expand Up @@ -91,7 +91,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-docgen/docs/ja/upstream-differences.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-docgen/docs/ja/upstream-differences.md"
},
{
"title": "API",
Expand Down Expand Up @@ -180,7 +180,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-docgen/docs/ja/api.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-docgen/docs/ja/api.md"
}
]
} as const;
6 changes: 3 additions & 3 deletions src/app/generated/projects/capacitor-printer.ja.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-printer/docs/ja/readme.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-printer/docs/ja/readme.md"
},
{
"title": "PDF",
Expand All @@ -85,7 +85,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-printer/docs/ja/pdf.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-printer/docs/ja/pdf.md"
},
{
"title": "Web",
Expand All @@ -109,7 +109,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-printer/docs/ja/web.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-printer/docs/ja/web.md"
},
{
"title": "API",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-screenshot-event/docs/ja/readme.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-screenshot-event/docs/ja/readme.md"
},
{
"title": "ScreenshotEvent",
Expand Down Expand Up @@ -110,7 +110,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/capacitor-screenshot-event/docs/ja/screenshot-event.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/capacitor-screenshot-event/docs/ja/screenshot-event.md"
},
{
"title": "API",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const PROJECT = {
],
"codes": [],
"scrollMap": [],
"editUrl": "https://github.com/rdlabo-dev/docs/edit/main/src/eslint-plugin-rules/docs/api.md"
"editUrl": "https://github.com/rdlabo-dev/website/edit/main/src/eslint-plugin-rules/docs/api.md"
},
{
"title": "component-property-use-readonly",
Expand Down
Loading