Skip to content

Commit 61e38af

Browse files
authored
Merge branch 'upstream/docs-tooling-followup' into docs/tooling-and-filecoin-pin-restore
2 parents 2d91ba2 + cc062a0 commit 61e38af

158 files changed

Lines changed: 4053 additions & 817 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/check-external-links.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: Check external links
22

33
on:
4-
pull_request:
5-
branches: [ main, staging, production ]
4+
push:
65

76
jobs:
87
linkChecker:

.github/workflows/docs-quality.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Documentation Quality
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
lint:
8+
name: Markdown Lint
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Run markdown linter
23+
run: npm run lint:summary
24+
25+
internal-links:
26+
name: Internal Links
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
32+
- name: Setup Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: '20'
36+
37+
- name: Install dependencies
38+
run: npm install
39+
40+
- name: Check internal links
41+
run: npm run check-links
42+
43+
redirects:
44+
name: Redirects Validation
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Checkout repository
48+
uses: actions/checkout@v4
49+
50+
- name: Setup Node.js
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: '20'
54+
55+
- name: Install dependencies
56+
run: npm install
57+
58+
- name: Validate redirects
59+
run: npm run check:redirects

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ _book/
1414
_book_temp/
1515
node_modules/
1616
package-lock.json
17-
.gitbook/cli/
17+
.gitbook/cli/
18+
.mcp.json
19+
.claude/
20+
scripts/checkers/dist/

.lycheeignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
11
# Filfox.info blocks automated requests (returns 500/503)
22
# but links work fine in browsers
33
https://filfox.info
4+
5+
# Bacalhau sites currently fail intermittently from CI runners.
6+
# Keep links in docs, but don't fail PR CI on transient network errors.
7+
https://docs.bacalhau.org
8+
https://www.bacalhau.org
9+
10+
# Airtable feedback links intermittently return 502 from CI runners.
11+
https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form
12+
13+
# Known flaky or stale external endpoints referenced in historical docs.
14+
https://singularity.storage
15+
https://calc.filecoin.eu
16+
https://thegraph.academy
17+
https://docs.0x.org/introduction/introduction-to-0x
18+
19+
# eOracle GitBook URL currently returns 404 from CI; keep temporary ignore.
20+
https://eoracle.gitbook.io/eoracle/price-feeds/integration-guide
21+
22+
# WeChat mobile page intermittently times out from CI runners.
23+
https://www.wechat.com/mobile

.markdownlint-cli2.jsonc

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"config": {
3+
"default": true,
4+
"MD004": { "style": "asterisk" },
5+
"MD013": false,
6+
"MD029": false,
7+
"MD036": false,
8+
"MD024": { "siblings_only": true },
9+
"MD033": {
10+
"allowed_elements": [
11+
"a",
12+
"b",
13+
"br",
14+
"code",
15+
"details",
16+
"div",
17+
"em",
18+
"figcaption",
19+
"figure",
20+
"img",
21+
"li",
22+
"mark",
23+
"meta",
24+
"ol",
25+
"p",
26+
"pre",
27+
"span",
28+
"strong",
29+
"sub",
30+
"summary",
31+
"sup",
32+
"table",
33+
"tbody",
34+
"td",
35+
"th",
36+
"thead",
37+
"tr",
38+
"ul"
39+
]
40+
}
41+
},
42+
"ignores": [
43+
"_book/**",
44+
"node_modules/**",
45+
".claude/**",
46+
".cursor/**",
47+
".zed/**",
48+
".agents/**",
49+
".gitbook/**",
50+
"reference/json-rpc/**"
51+
]
52+
}

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"DavidAnson.vscode-markdownlint"
4+
]
5+
}

.vscode/settings.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"files.trimTrailingWhitespace": true,
3+
"files.insertFinalNewline": true,
4+
"files.trimFinalNewlines": true,
5+
"[markdown]": {
6+
"editor.formatOnSave": true,
7+
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
8+
"editor.codeActionsOnSave": {
9+
"source.fixAll.markdownlint": "explicit"
10+
}
11+
},
12+
"markdownlint.run": "onType",
13+
"typescript.tsdk": "node_modules/typescript/lib"
14+
}

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# Filecoin Docs
2+
13
<div align=center>
2-
4+
35
[![MIT License](https://img.shields.io/badge/license-MIT-blueviolet?style=for-the-badge)](https://protocol.ai/blog/announcing-the-permissive-license-stack/)
46
[![Website status](https://img.shields.io/website.svg?style=for-the-badge&url=https%3A%2F%2Fdocs.filecoin.io)](https://docs.filecoin.io/)
57
[![Backlog](https://img.shields.io/badge/backlog-Updated-blue?style=for-the-badge)](https://github.com/orgs/filecoin-project/projects/103/views/1)
@@ -9,20 +11,21 @@
911

1012
## Table of contents <!-- omit in toc -->
1113

12-
- [About this repo](#about-this-repo)
13-
- [Contributing](#contributing)
14-
- [Local Development](#local-development)
15-
- [Link checking](#link-checking)
16-
- [Issues](#issues)
17-
- [Backlog](#backlog)
18-
- [Priority](#priority)
19-
- [License](#license)
14+
* [About this repo](#about-this-repo)
15+
* [Contributing](#contributing)
16+
* [Local Development](#local-development)
17+
* [Link checking](#link-checking)
18+
* [Issues](#issues)
19+
* [Backlog](#backlog)
20+
* [Priority](#priority)
21+
* [License](#license)
2022

2123
## About this repo
2224

2325
This repository manages the documentation for the [Filecoin network](https://filecoin.io). The content is built and hosted by [GitBook](https://gitbook.com). View the docs site at [docs.filecoin.io](https://docs.filecoin.io).
2426

2527
## Publishing
28+
2629
This repo is synced to [GitBook](https://gitbook.com) using [GitBook's GitSync](https://gitbook.com/docs/getting-started/git-sync). When a PR to `main` is merged, a new GitBook is published. This happens as a result of the GitBook applicaiton, not a GitHub Action workflow in the repo.
2730

2831
PRs also generate preview links so one can preview the site before merging. Per [GitBook GitSync integration](https://app.gitbook.com/o/NNmD4UvLc26b1TmEYgzE/s/xNWFG7bQkjLkl5BBGjbD/~/integrations/github), preview links from fork PRs have been enabled.
@@ -46,6 +49,7 @@ You can build and preview the documentation locally.
4649
```
4750

4851
2. **Develop**: Builds and serves the site with live reload.
52+
4953
```bash
5054
npm run serve
5155
```
@@ -58,17 +62,15 @@ You can build and preview the documentation locally.
5862
| `npm run build` | Builds the static site to the `_book/` directory |
5963
| `npm run preview` | Serves the existing `_book/` directory without rebuilding |
6064

61-
6265
### Link checking
6366

6467
Links are checked using [lychee-action](https://github.com/lycheeverse/lychee-action) as configured by [check-external-links.yml](.github/workflows/check-external-links.yml). Working links are required before merging. If you have a link that should be excluded from checking:
68+
6569
1. wrap it in `` `backticks` `` OR
6670
2. wrap it in `<code>` blocks OR
67-
3. use [`.lycheeignore`](https://github.com/lycheeverse/lychee-action?tab=readme-ov-file#excluding-links-from-getting-checked)
68-
69-
71+
3. use [`.lycheeignore`](https://github.com/lycheeverse/lychee-action?tab=readme-ov-file#excluding-links-from-getting-checked)
7072

71-
## Issues
73+
## Issues
7274

7375
Found a problem with the Filecoin docs site? [Please raise an issue](https://github.com/filecoin-project/filecoin-docs/issues/new). Be as specific and descriptive as possible; screenshots help!
7476

WELCOME.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ layout:
2121
visible: true
2222
---
2323

24-
# Welcome to Filecoin Docs
25-
2624
Choose your own path to start exploring Filecoin:
2725

2826
<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>💡 <strong>Learn the basics</strong></td><td>New to Filecoin and looking for foundational concepts? Start with the Basics section to understand the essentials and kick off your journey!</td><td></td><td><a href="getting-started/what-is-filecoin/">what-is-filecoin</a></td></tr><tr><td>🔧 <strong>Build with Filecoin</strong></td><td>Ready to develop on the Filecoin network? Head to the Developers section for guides and examples to help bring your project to life.</td><td></td><td><a href="core-concepts/filecoin-virtual-machine/">the-fvm.md</a></td></tr><tr><td>🏗️ <strong>Become a Storage Provider</strong></td><td>Thinking about running a provider node on Filecoin? Visit the Provider section for comprehensive guidance on getting started.</td><td></td><td><a href="storage-providers/getting-started.md">getting-started.md</a></td></tr><tr><td>📊 <strong>Store data</strong></td><td>Looking to store large volumes of data? Explore the Store section to review the various storage options Filecoin offers.</td><td></td><td><a href="getting-started/what-is-filecoin/storage-model.md">storage-model.md</a></td></tr></tbody></table>

book.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"structure": {
33
"readme": "WELCOME.md"
44
},
5-
"plugins": ["filecoin", "-highlight"]
5+
"plugins": ["filecoin", "-highlight", "-search", "-lunr"]
66
}

0 commit comments

Comments
 (0)