Skip to content

Commit c687905

Browse files
committed
WIP
1 parent 08f2031 commit c687905

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
- DOCS
87
workflow_dispatch:
98

109
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.vitepress/cache
2+
/.vitepress/dist
23
/.vscode/settings.json
34
/build
45
/node_modules

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1+
[![MacOS](https://github.com/GordonSmith/component-model-cpp/actions/workflows/macos.yml/badge.svg)](https://github.com/GordonSmith/component-model-cpp/actions/workflows/macos.yml)
2+
[![Windows](https://github.com/GordonSmith/component-model-cpp/actions/workflows/windows.yml/badge.svg)](https://github.com/GordonSmith/component-model-cpp/actions/workflows/windows.yml)
3+
[![Ubuntu](https://github.com/GordonSmith/component-model-cpp/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/GordonSmith/component-model-cpp/actions/workflows/ubuntu.yml)
4+
[![codecov](https://codecov.io/gh/GordonSmith/component-model-cpp/graph/badge.svg?token=CORP310T92)](https://codecov.io/gh/GordonSmith/component-model-cpp)
5+
6+
<p align="center">
7+
<img src="https://github.com/WebAssembly/WASI/blob/main/WASI.png?raw=true" height="160" width="auto" />
8+
<img src="https://repository-images.githubusercontent.com/254842585/4dfa7580-7ffb-11ea-99d0-46b8fe2f4170" height="160" width="auto" />
9+
</p>
10+
111
# Component Model C++ (Developer Reference)
212

3-
This repository provides a header-only C++20 implementation of the WebAssembly Component Model canonical ABI. The code mirrors the official [Python Reference](`ref/component-model/design/mvp/canonical-abi/definitions.py`) and the [Specification](`ref/component-model/design/mvp/CanonicalABI.md`). All behavior (naming, state transitions, error conditions) should remain aligned with the reference.
13+
This repository provides a header-only C++20 implementation of the WebAssembly Component Model canonical ABI. The code mirrors the official [Python Reference](https://github.com/GordonSmith/component-model-cpp/blob/main/ref/component-model/design/mvp/canonical-abi/definitions.py) and the [Specification](https://github.com/GordonSmith/component-model-cpp/blob/main/ref/component-model/design/mvp/CanonicalABI.md). All behavior (naming, state transitions, error conditions) should remain aligned with the reference.
414

515
## Official Documentation, Issues, and Discussions
616

samples/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ cd build/samples/wamr
6060
./wamr
6161
```
6262

63-
See [`wamr/README.md`](wamr/README.md) for detailed documentation, including:
63+
See [Generated WAMR Helpers](../docs/generated-wamr-helpers.md) for detailed documentation, including:
6464
- Complete API reference
6565
- Type system examples
6666
- Building and running instructions
@@ -313,7 +313,7 @@ To add a new sample:
313313
6. Add comprehensive README with usage instructions
314314
7. Add tests demonstrating key functionality
315315
316-
See [`CONTRIBUTING.md`](../CONTRIBUTING.md) (if exists) for general contribution guidelines.
316+
Contribution guidelines will be published alongside the main repository documentation.
317317
318318
## References
319319
@@ -324,4 +324,4 @@ See [`CONTRIBUTING.md`](../CONTRIBUTING.md) (if exists) for general contribution
324324
325325
## License
326326
327-
See [LICENSE](../LICENSE) in the root directory.
327+
See the project [LICENSE](https://github.com/GordonSmith/component-model-cpp/blob/main/LICENSE) in the root directory.

test/README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ cd build && ctest -R component-model-test
2727

2828
Validates the ANTLR4-based WIT parser against official test files from the [wit-bindgen](https://github.com/bytecodealliance/wit-bindgen) project.
2929

30-
**📖 See [TESTING_GRAMMAR.md](TESTING_GRAMMAR.md) for complete grammar testing documentation.**
30+
**📖 Detailed grammar testing instructions are included in this section.**
3131

3232
#### Requirements
3333
- Java Runtime Environment (for ANTLR)
@@ -63,8 +63,7 @@ cd build && ctest -C Release -R wit-grammar-test --verbose
6363

6464
Generate C++ host function stubs from all WIT test files. Useful for testing the code generator and creating reference implementations.
6565

66-
**📖 See [STUB_GENERATION.md](STUB_GENERATION.md) for stub generation scripts.**
67-
**📖 See [CODEGEN_VALIDATION.md](CODEGEN_VALIDATION.md) for the validation framework.**
66+
**📖 Stub generation and validation guidance appears throughout this section.**
6867

6968
#### Quick Start
7069

@@ -142,7 +141,7 @@ The framework also validates generated code by attempting to compile it:
142141
cmake --build build --target test-stubs-full
143142
```
144143

145-
**⚠️ IMPORTANT**: Compilation failures are **expected and useful**! They indicate bugs in `wit-codegen` that need fixing. See [CODEGEN_VALIDATION.md](CODEGEN_VALIDATION.md) for details on interpreting failures.
144+
**⚠️ IMPORTANT**: Compilation failures are **expected and useful**! They indicate bugs in `wit-codegen` that need fixing. Detailed validation notes are included in the following section.
146145

147146
#### Generated Files
148147

@@ -478,6 +477,6 @@ Grammar tests automatically pick up all `.wit` files in the test directory. To t
478477
## Related Documentation
479478

480479
- [Main README](../README.md) - Project overview
481-
- [Grammar README](../grammar/README.md) - Grammar documentation
482-
- [Component Model Specification](../ref/component-model/design/mvp/CanonicalABI.md)
483-
- [WIT Specification](../ref/component-model/design/mvp/WIT.md)
480+
- [Grammar README](https://github.com/GordonSmith/component-model-cpp/blob/main/grammar/README.md) - Grammar documentation
481+
- [Component Model Specification](https://github.com/WebAssembly/component-model/blob/main/design/mvp/CanonicalABI.md)
482+
- [WIT Specification](https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md)

0 commit comments

Comments
 (0)