|
1 | 1 | # IPFS Docs
|
2 | 2 |
|
3 |
| -> Documentation website for the IPFS project |
| 3 | +This repo is used to: |
4 | 4 |
|
5 |
| -For now: ipns://beta.docs.ipfs.io and https://beta.docs.ipfs.io |
| 5 | +1. Organize documentation work across the IPFS project |
| 6 | +2. Host a documentation website for IPFS meant to replace what is currently at https://ipfs.io/docs |
6 | 7 |
|
7 |
| -Read the Captain's Log for updates: [ipfs/docs#47](https://github.com/ipfs/docs/issues/47) |
8 |
| - |
9 |
| -- Overview |
10 |
| -- Contributing content |
11 |
| -- Developing the site |
12 |
| -- Automatic builds |
13 |
| -- FAQ |
14 |
| - - Why is it critical this is a static site? |
15 |
| -- License |
| 8 | +Read the Captain's Log or check the [issues](https://github.com/ipfs/docs/issues) for updates: [ipfs/docs#47](https://github.com/ipfs/docs/issues/47) |
16 | 9 |
|
17 | 10 |
|
18 | 11 | ## Overview
|
19 | 12 |
|
20 |
| -TODO |
| 13 | +IPFS documentation currently has several acute problems: |
| 14 | + |
| 15 | +- There is **no clear introduction to the overall idea of exactly how IPFS works and what it’s doing.** |
| 16 | +- IPFS has **lots of new concepts** (whether you are knowledgeable about things like graphs or not) that are just very different from the web technologies people know today. |
| 17 | +- **Docs are inconsistently located** and spread across a number of repos people have to hunt through. |
| 18 | +- Clear, **standard API docs** are not always available. |
| 19 | +- **Hunting through GitHub is hard.** (Which repos have docs? Where in the repo are they? Which projects are important and how do they relate to the others? Which repos and docs are up-to-date?) |
| 20 | + |
| 21 | +We aim to solve some of these problems through a documentation site (the source of which is in this repo) and others through organizing work, conventions, and practices across project repos (managed in the issues here). |
21 | 22 |
|
22 | 23 |
|
23 | 24 | ## Contributing content
|
24 | 25 |
|
25 |
| -TODO |
| 26 | +The documentation site contains several different kinds of content: |
| 27 | + |
| 28 | +1. **Introductory overviews.** This lives in `content/introduction`. If you spot a problem or have improvements, please post an issue or PR. Please also take a look at [#60](https://github.com/ipfs/docs/issues/60) for planning and ongoing work in this area. |
| 29 | + |
| 30 | +2. **Guides, examples, and tutorials.** Most examples currently live in other repos, like [js-ipfs examples](https://github.com/ipfs/js-ipfs/tree/master/examples). If you have thoughts on how to better integrate them, please file an issue here. If you have feedback on individual examples or want to add a new one, please file an issue or PR on the relevant repo. If you have ideas for guides or tutorials, they belong here! Please propose them in an issue here before creating a PR. |
| 31 | + |
| 32 | +3. **Reference Documentation.** Please see the issues in this repo for current activity around reference/API documentation. |
| 33 | + |
| 34 | +4. **Community.** If there are important missing community links, file an issue or PR here! |
| 35 | + |
| 36 | +Before posting a PR with documentation changes, please also check [out styleguide](https://github.com/ipfs/community/blob/master/docs-styleguide.md). |
26 | 37 |
|
27 | 38 |
|
28 | 39 | ## Developing the site
|
|
35 | 46 | ```sh
|
36 | 47 | npm install -g aegir
|
37 | 48 | ```
|
38 |
| - |
| 49 | + |
39 | 50 | 3. Download IPFS libraries and tools (e.g. go-ipfs, js-ipfs) and generate their documentation:
|
40 | 51 |
|
41 | 52 | ```sh
|
42 |
| - make packages |
| 53 | + make install |
43 | 54 | ```
|
44 |
| - |
45 |
| - (Repeat this step anytime a package with autogenerated documentation has a new release.) |
| 55 | + |
| 56 | + This installs dependencies and generates source files from other projects (e.g. API documentation; theme resources from the `ipfs-css`, etc). |
| 57 | + |
| 58 | + When dependencies or external packages (like `go-ipfs`) have new releases, regenerate files based on them by running `make resources`. |
46 | 59 |
|
47 | 60 |
|
48 | 61 | ### Build and Run the Site
|
49 | 62 |
|
50 |
| -* In the root directory, run `make serve` |
| 63 | +* In the root directory, run `make dev` |
51 | 64 | * Load http://localhost:1313 in your web browser
|
52 | 65 | * Edit and add things!
|
53 | 66 |
|
| 67 | +To create a production build, run `make build` instead. You’ll find the final static site in the `public` directory. |
| 68 | + |
54 | 69 |
|
55 | 70 | ## FAQ
|
56 | 71 |
|
57 |
| -### Why is it critical this is a static site? |
| 72 | +### Why is this is a static site? |
58 | 73 |
|
59 |
| -TODO |
| 74 | +We believe in hosting IPFS’s documentation on IPFS, and that’s much easier when the content is static. |
60 | 75 |
|
61 | 76 |
|
62 | 77 | ## License
|
|
0 commit comments