You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator, and deployed
6
-
on [Netlify](https://www.netlify.com/).
5
+
## Overview
6
+
7
+
This repo contains the source code and content to generate the <https://opensource.contentauthenticity.org/> website. This site is built using [Docusaurus 2](https://docusaurus.io/), a modern static site generator, and deployed on [Netlify](https://www.netlify.com/).
8
+
9
+
### Directory structure
10
+
11
+
The `docs` sub-directory contains documentation content (in markdown or `.mdx` format) in the following sub-directories:
12
+
-[`js-sdk/api`](./docs/js-sdk/api): [API documentation](https://opensource.contentauthenticity.org/docs/js-sdk/api/) for the JavaScript library generated from the source code; see [Generating JavaScript API docs](#generating-javascript-sdk-api-docs).
13
+
-[`js-sdk`](./docs/js-sdk/): [Other documentation](https://opensource.contentauthenticity.org/docs/js-sdk/getting-started/overview) for the JavaScript library.
14
+
(./scripts/generate-api-docs/index.js)
15
+
-`includes`: Markdown content imported (transcluded) into other files.
16
+
-`manifest`: Content for the [Understanding manifests](https://opensource.contentauthenticity.org/docs/manifest/understanding-manifest) section.
17
+
-`static`: Additional assets such as images.
18
+
19
+
Additionally, the [scripts/fetch-readme.js](./scripts/fetch-readme.js) script dynamically downloads documentation files (sometimes just the `README.md` but often other markdown files, too) from other repos in the SDK. See [Running the fetch script](#running-fetch-script).
20
+
21
+
This table summarizes the content that this script fetches from other repos.
The [Manifest store reference](https://opensource.contentauthenticity.org/docs/manifest/manifest-ref) is an HTML file generated by the [json-manifest-reference](https://github.com/contentauth/json-manifest-reference) repository and imported manually.
7
37
8
38
## Installation
9
39
@@ -16,7 +46,7 @@ $ npm install
16
46
17
47
## Local development
18
48
19
-
**Prerequisite**: To build the site locally, you must first check out the JavaScript library in a sibling directory and build the API docs there. In the parent directory of `opensource.contentauth.org`, enter these commands:
49
+
**Prerequisite**: To build the site locally, you must first check out the JavaScript library in a sibling directory and build the API docs there. In the parent directory of the `opensource.contentauth.org` directory, enter these commands:
@@ -34,23 +64,23 @@ This command starts a local development server and opens up a browser window. Mo
34
64
35
65
### Running fetch script
36
66
37
-
The `/scripts/fetch-readme.js` script pulls markdown files from other repos (e.g. `c2patool`). To rerun this script for local build, enter this command:
67
+
The `/scripts/fetch-readme.js` script pulls markdown files from other repos (e.g. `c2pa-rs`). To rerun this script for local build, enter this command:
38
68
39
69
```
40
70
npm run docs:fetch-readme
41
71
```
42
72
43
-
NOTE: If you added a **new** repo to get .md files from, then you need to manually add the directory, add a `.gitkeep` file to it, and then commit it to Git.
73
+
NOTE: If you need to get markdown files from a **new** repo that you added, then you need to manually add the sub-directory, add a `.gitkeep` file to it, and then commit it to this repository.
44
74
45
-
### Generate JavaScript SDK API docs
75
+
### Generating JavaScript SDK API docs
46
76
47
-
The `/scripts/generate-api-docs/index.js` script generates API docs for the JS SDK. To run this script for local build, enter this command:
77
+
The `/scripts/generate-api-docs/index.js` script generates API docs for the JS SDK (assuming you've checked it out in a sibling directory). To run this script for local build, enter this command:
48
78
49
79
```
50
80
npm run docs:generate-api-docs
51
81
```
52
82
53
-
##Build
83
+
### Building
54
84
55
85
```
56
86
$ npm run build
@@ -60,8 +90,7 @@ This command generates static content into the `build` directory and can be serv
60
90
61
91
### Deployment
62
92
63
-
Deployments are handled automatically by Netlify. Please open up a pull request with any changes and a preview site
64
-
should be created automatically so that the preview can be shared before merging.
93
+
Deployments are handled automatically by Netlify. Please open up a pull request with any changes and a preview site will be created automatically so you can share what the rendered site will look like before merging.
0 commit comments