Skip to content

Commit 1e4edd2

Browse files
authored
Merge pull request #1 from BuckleScript/adapt-api-links
Adapt api links
2 parents 83374fc + 45dbb4c commit 1e4edd2

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# BuckleScript Docs (deprecated)
2+
3+
> These docs are not the actual bucklescript docs.
4+
5+
We use this repository to generate link forwardings to the relevant resources on [rescript-lang.org](https://rescript-lang.org).
6+
7+
## For Maintainers
8+
9+
- Update links accordingly in the `createDummyPages.js` file
10+
- Run `node createDummyPages.js`
11+
- Git add and commit the generated files

createDummyPages.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let childProcess = require('child_process')
44
let blogPostBase = 'https://reasonml.org/blog'
55
let rescriptBase = 'https://rescript-lang.org'
66
let manualBase = `${rescriptBase}/docs/manual/latest`
7-
let apiBase = `${rescriptBase}/apis/latest`
7+
let apiBase = `${rescriptBase}/docs/manual/latest/api`
88

99
let docLanguages = [
1010
'en',
@@ -67,8 +67,8 @@ let docPages = {
6767
'ecosystem/index.html': `${rescriptBase}/docs/manual/latest/libraries`,
6868
'embed-raw-javascript.html': `${rescriptBase}/docs/manual/latest/embed-raw-javascript`,
6969
'embed-raw-javascript/index.html': `${rescriptBase}/docs/manual/latest/embed-raw-javascript`,
70-
'exceptions.html': `${rescriptBase}/docs/manual/latest/exceptions`,
71-
'exceptions/index.html': `${rescriptBase}/docs/manual/latest/exceptions`,
70+
'exceptions.html': `${rescriptBase}/docs/manual/latest/exception`,
71+
'exceptions/index.html': `${rescriptBase}/docs/manual/latest/exception`,
7272
'extended-compiler-options.html': `${rescriptBase}/docs/manual/latest/introduction`,
7373
'extended-compiler-options/index.html': `${rescriptBase}/docs/manual/latest/introduction`,
7474
'function.html': `${rescriptBase}/docs/manual/latest/function`,

0 commit comments

Comments
 (0)