Skip to content

Commit 89ff34f

Browse files
author
Orta
authored
Merge pull request #242 from microsoft/learn
Update the wiki to use the right links and offer some better advice about how to debug the wiki
2 parents 61446a8 + 6e95591 commit 89ff34f

28 files changed

+36
-30
lines changed

.github/workflows/sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# Update search links from the origin repo before pushing to the upstream
2323
- run: git clone --depth 1 https://github.com/microsoft/TypeScript.git
2424
- run: npm i
25-
- run: node scripts/convertRelativeLinksToHardcoded.js **/*.md --write
25+
- run: node scripts/convertRelativeLinksToHardcoded.js "**/*.md" --write
2626
- run: rm -rf TypeScript
2727

2828
- run: git add .

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ Then you can open: `http://localhost:4567`
2020

2121
Things to remember:
2222

23+
- Gollum is a bit of a nightmare for testing, my current technique is:
24+
25+
```sh
26+
# before
27+
git branch -b thing_i_am_working_on
28+
29+
# to iterate, amend the commit and re-run gollum against that bit of git
30+
git add .; git commit --amend --no-edit --no-verify; gollum --ref thing_i_am_working_on
31+
```
32+
2333
- Wikis don't support nesting, so filenames have to get a bit wild
2434

2535
```diff
-136 KB
Binary file not shown.

compiler/codebase/src/services/formatting.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
-1.44 MB
Binary file not shown.

compiler/systems/testing/units.md

Whitespace-only changes.
File renamed without changes.

compiler/codebase/src/compiler/checker-inferrence.md renamed to learn/compiler/compiler-checker-inferrence.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ This function takes a few params:
1717
const a = "Hello World";
1818
```
1919

20-
<!-- prettier-ignore-start -->
20+
<!-- prettier-ignore-start -->
2121

2222
[0]: <src/compiler/checker.ts - function inferTypes(>
2323
[1]: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-6.html#strict-function-types
2424

25-
<!-- prettier-ignore-end -->
25+
<!-- prettier-ignore-end -->

0 commit comments

Comments
 (0)