Skip to content

Commit 64eae41

Browse files
committed
docs: update docs to state they are a work in progress
1 parent dbc3ca1 commit 64eae41

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+495
-937
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ For more detailed examples, please refer to the [examples](./examples/README.md)
230230

231231
## Compatibility Matrix
232232

233-
Our [Compatibility documentation](https://mitre-attack.github.io/attack-data-model/explanation/versioning-philosophy) tracks the compatibility between versions of the ATT&CK Data Model (ADM) TypeScript API (`@mitre-attack/attack-data-model`) and versions of the MITRE ATT&CK dataset (`mitre-attack/attack-stix-data`).
233+
Our [Compatibility documentation](https://mitre-attack.github.io/attack-data-model/principles/versioning-philosophy) tracks the compatibility between versions of the ATT&CK Data Model (ADM) TypeScript API (`@mitre-attack/attack-data-model`) and versions of the MITRE ATT&CK dataset (`mitre-attack/attack-stix-data`).
234234

235235
## Contributing
236236

docusaurus/.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@
1818
npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
21-
22-
docs/*/*
23-
!docs/sdo/stix-bundle.schema.md

docusaurus/blog/known-issues.md

Lines changed: 0 additions & 10 deletions
This file was deleted.
File renamed without changes.

docusaurus/docs/how-to-guides/contributing/dev-setup.md renamed to docusaurus/docs/contributing/dev-setup.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@ cd attack-data-model
1010
npm install
1111
```
1212

13-
💡 The repo is a multi-package workspace (core library + docusaurus site). Running npm install at the root will also bootstrap the docs workspace.
13+
💡 The repo is a multi-package workspace (core library + docusaurus site).
14+
Running `npm install` at the root will NOT install the dependencies for building the docs.
15+
Check out the [documentation](docs) contribution guide for more details.
1416

1517
## Verify TypeScript build
1618

1719
```bash
18-
npm run build # compiles src → dist using tsup
19-
npm run test # vitest smoke-test
20+
npm run build # compiles src → dist using tsup
21+
npm run test # vitest tests
2022
```
2123

2224
## Handy npm scripts
2325

2426
| Script | Purpose |
2527
|---|---|
26-
| npm run lint | Lints all src/** files |
28+
| npm run lint | Lints all `src/**` files |
2729
| npm run format | Prettier + ESLint fix |
2830
| npm run test | Run tests |
2931

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Documentation
2+
3+
This covers how we generate the documentation for the ATT&CK Data Model.
4+
5+
All of these commands are run from the `docusaurus/` directory, so be sure to run this first.
6+
Otherwise you may be very confused as to why these commands don't exist in the top-level `package.json`!
7+
8+
```bash
9+
cd docusaurus/
10+
11+
# don't forget to install the dependencies that are specific to building the documentation
12+
npm install
13+
```
14+
15+
## Auto-generating schema reference files
16+
17+
The script `generate-docs.sh` introspects **all** `*.schema.ts` files and
18+
emits Markdown to `docusaurus/docs/reference/schemas/*` which is git ignored.
19+
20+
```bash
21+
npm run gendocs
22+
```
23+
24+
## Run the documentation site locally
25+
26+
Running one of the following commands will enable you to open the site locally at [http://localhost:3000](http://localhost:3000).
27+
28+
```bash
29+
# opens your default browser automatically
30+
npm start
31+
32+
# doesn't open your browser
33+
npm run -- --no-open
34+
```
35+
36+
## Adding new how-to guides
37+
38+
Its pretty easy to add a new guide. Basically just do the following:
39+
40+
1. Create your Markdown file inside `docusaurus/docs/<topic>/my-guide.md`
41+
2. Update `sidebars.ts` to include it
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import DocCardList from '@theme/DocCardList';
2+
3+
# Contributing
4+
5+
**Step-by-step technical instructions for contributors**
6+
7+
This section explains how to contribute to the ATT&CK Data Model repository.
8+
It complements the high-level `CONTRIBUTING.md` in the root of the repository by focusing on specific developer tasks.
9+
10+
## Topics
11+
12+
<DocCardList />

docusaurus/docs/how-to-guides/contributing/tests.md renamed to docusaurus/docs/contributing/tests.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Running and Writing Tests
22

3-
The project uses **[Vitest](https://vitest.dev/)**.
3+
The ATT&CK Data Model uses **[Vitest](https://vitest.dev/)** for testing.
44

55
## Execute the full suite
66

7+
Running the tests is straightforward enough:
8+
79
```bash
810
npm test
911
```

0 commit comments

Comments
 (0)