Skip to content

Commit cefe2f5

Browse files
committed
Merge remote-tracking branch 'origin/master' into codex/pr-1231-docsearch-plan
# Conflicts: # .gitignore # apps/docs/__tests__/AlgoliaConfig_.test.res # apps/docs/__tests__/AlgoliaEnvStatus_.test.res # apps/docs/__tests__/Meta_.test.res # apps/docs/__tests__/Search_.test.res # apps/docs/__tests__/Sitemap_.test.res # apps/docs/__tests__/Url_.test.res # apps/docs/__tests__/__screenshots__/Search_.test.jsx/markdownToHtml-combined-transformations-bold-inside-code-stays-as-is--code-matched-first--1.png # apps/docs/__tests__/__screenshots__/Search_.test.jsx/markdownToHtml-markdown-link-stripping-handles-link-with-empty-text-1.png # apps/docs/__tests__/__screenshots__/Url_.test.jsx/Url-parse-version-detection-parses-next-keyword-1.png # apps/docs/__tests__/__screenshots__/Url_.test.jsx/Url-parse-version-detection-parses-version-without-v-prefix--PR--1231--1.png # apps/docs/scripts/LogAlgoliaEnvStatus.res # apps/docs/scripts/generate_sitemap.res # apps/docs/src/common/AlgoliaConfig.res # apps/docs/src/common/AlgoliaEnvStatus.res # apps/docs/src/common/Sitemap.res # package.json
2 parents 0cdb18a + a11341c commit cefe2f5

874 files changed

Lines changed: 1185 additions & 466 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-fork-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
with:
7979
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
8080
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
81+
workingDirectory: apps/docs
8182
command: pages deploy out --project-name=rescript-lang-org
8283
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
8384
wranglerVersion: 4.61.1

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
with:
6363
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
6464
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
65+
workingDirectory: apps/docs
6566
command: pages deploy out --project-name=rescript-lang-org --branch=${{ env.SAFE_BRANCH }}
6667
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
6768
wranglerVersion: 4.63.0
@@ -119,5 +120,6 @@ jobs:
119120
uses: cypress-io/github-action@v7
120121
with:
121122
install: false
123+
working-directory: apps/docs
122124
browser: chrome
123125
config: baseUrl=${{ steps.cypress-base-url.outputs.url }}

.gitignore

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,56 +3,64 @@
33
*.swo
44
.worktrees/
55

6-
# Generated via update-index script
7-
public/blog/feed.xml
6+
# Generated via docs update-index script
7+
apps/docs/public/blog/feed.xml
88

99
node_modules/
1010
.next/
1111
out/
12+
apps/docs/out/
1213
index_data/*.json
14+
apps/docs/index_data/*.json
1315

14-
# Generated via test examples script
16+
# Generated via docs test examples script
1517
temp
1618
temp-js-output
1719
temp-jsx-preserve
20+
apps/docs/temp
21+
apps/docs/temp-js-output
22+
apps/docs/temp-jsx-preserve
1823

1924
.bsb.lock
2025
.merlin
2126
lib/
27+
apps/docs/lib/
2228

2329
.vercel
2430

25-
src/**/*.mjs
26-
src/**/*.jsx
27-
scripts/gendocs.mjs
28-
scripts/generate_*.mjs
29-
scripts/gendocs.jsx
30-
scripts/generate_*.jsx
31-
scripts/LogAlgoliaEnvStatus.jsx
31+
apps/docs/src/**/*.mjs
32+
apps/docs/src/**/*.jsx
33+
apps/docs/scripts/gendocs.mjs
34+
apps/docs/scripts/generate_*.mjs
35+
apps/docs/scripts/gendocs.jsx
36+
apps/docs/scripts/generate_*.jsx
37+
apps/docs/scripts/LogAlgoliaEnvStatus.jsx
3238

3339
# Generated via generate-llms script
34-
public/llms/manual/**/llm*.txt
35-
public/llms/react/**/llm*.txt
36-
pages/docs/**/**/llms.mdx
37-
38-
public/playground-bundles/
39-
!public/_redirects
40+
apps/docs/public/llms/manual/**/llm*.txt
41+
apps/docs/public/llms/react/**/llm*.txt
42+
apps/docs/markdown-pages/docs/**/**/llms.mdx
4043

44+
apps/docs/public/playground-bundles/
45+
!apps/docs/public/_redirects
4146

4247
dist
4348
build
49+
apps/docs/dist
50+
apps/docs/build
4451
.react-router
45-
.worktrees/
52+
apps/docs/.react-router
4653
mdx-manifest.json
47-
48-
app/**/*.mjs
49-
app/**/*.jsx
50-
functions/**/*.mjs
51-
functions/**/*.jsx
52-
__tests__/**/*.mjs
53-
__tests__/**/*.jsx
54-
e2e/**/*.mjs
55-
e2e/**/*.jsx
54+
apps/docs/mdx-manifest.json
55+
56+
apps/docs/app/**/*.mjs
57+
apps/docs/app/**/*.jsx
58+
apps/docs/functions/**/*.mjs
59+
apps/docs/functions/**/*.jsx
60+
apps/docs/__tests__/**/*.mjs
61+
apps/docs/__tests__/**/*.jsx
62+
apps/docs/e2e/**/*.mjs
63+
apps/docs/e2e/**/*.jsx
5664
!_shims.mjs
5765
!_shims.jsx
5866

@@ -66,16 +74,20 @@ e2e/**/*.jsx
6674

6775
# wrangler
6876
.wrangler
77+
apps/docs/.wrangler
6978

70-
# Scripts generated from rolldown to convert them from .jsx files to .mjs files
79+
# Scripts generated from tsdown to convert them from .jsx files to .mjs files
7180
_scripts
81+
apps/docs/_scripts
7282

7383
# Local env files
7484
.env.local
85+
apps/docs/.env.local
7586

7687
# Local git worktrees
7788
.worktrees
7889

7990
# Vitest screenshots
80-
!__tests__/__screenshots__/**/*
91+
!apps/docs/__tests__/__screenshots__/**/*
8192
.vitest-attachments
93+
apps/docs/.vitest-attachments

.oxfmtrc.json

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
"sortPackageJson": false,
55
"ignorePatterns": [
66
"!_shims.mjs",
7-
"!public/_redirects",
7+
"!apps/docs/public/_redirects",
88
".DS_Store",
99
".worktrees/",
1010
".next/",
1111
".react-router",
1212
"*.swo",
1313
"*.swp",
14-
"app/**/*.mjs",
14+
"apps/docs/app/**/*.mjs",
1515
"build",
16-
"data/api/**/*.json",
16+
"apps/docs/data/api/**/*.json",
1717
"dist",
18-
"index_data/*.json",
18+
"apps/docs/index_data/*.json",
1919
"node_modules/",
20-
"out/",
21-
"public/playground-bundles/",
22-
"public/blog/feed.xml",
20+
"apps/docs/out/",
21+
"apps/docs/public/playground-bundles/",
22+
"apps/docs/public/blog/feed.xml",
2323
"_tempFile.cmi",
2424
"_tempFile.cmj",
2525
"_tempFile.cmt",
@@ -28,15 +28,16 @@
2828
".bsb.lock",
2929
".merlin",
3030
"lib/",
31+
"apps/docs/lib/",
3132
".vercel",
32-
"src/**/*.mjs",
33-
"scripts/gendocs.mjs",
34-
"scripts/generate_*.mjs",
35-
"public/llms/manual/**/llm*.txt",
36-
"public/llms/react/**/llm*.txt",
37-
"pages/docs/**/**/llms.mdx",
38-
"markdown-pages/docs/manual/installation.mdx",
33+
"apps/docs/src/**/*.mjs",
34+
"apps/docs/scripts/gendocs.mjs",
35+
"apps/docs/scripts/generate_*.mjs",
36+
"apps/docs/public/llms/manual/**/llm*.txt",
37+
"apps/docs/public/llms/react/**/llm*.txt",
38+
"apps/docs/markdown-pages/docs/**/**/llms.mdx",
39+
"apps/docs/markdown-pages/docs/manual/installation.mdx",
3940
".yarn/releases/yarn-4.12.0.cjs",
40-
"data/api/*"
41+
"apps/docs/data/api/*"
4142
]
4243
}

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ SHELL = /bin/bash
22

33
node_modules/.bin/rescript:
44
yarn install
5-
yarn update-index
65

7-
build: node_modules/.bin/rescript
8-
node_modules/.bin/rescript
9-
yarn update-index
6+
build: node_modules/.bin/rescript
7+
yarn build:res
8+
yarn build:scripts
9+
yarn build:update-index
1010

1111
dev: build
1212
yarn dev
@@ -15,7 +15,7 @@ test: build
1515
yarn test
1616

1717
clean:
18-
rm -r node_modules lib
18+
rm -r node_modules apps/docs/lib apps/docs/build apps/docs/out
1919

2020
.DEFAULT_GOAL := build
2121

__tests__/LandingPage_.test.res

Lines changed: 0 additions & 55 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)