Skip to content

Commit ad72c13

Browse files
besaleliangpt
andauthored
docs: fix broken links (#135)
- Inlines CONTRIBUTING.md and CODE_OF_CONDUCT.md into docs - Fixes broken links - centered badges on docs homepage - the diagram was a little hard to see in dark mode, so I changed the theme - add footnote about glibc Also fixed the following: - Doc file 'cookbooks/token-classification-ner.md' contains a link 'sequence-classification-sentiment.md', but the target 'cookbooks/sequence-classification-sentiment.md' is not found among documentation files. - Doc file 'cookbooks/token-classification-ner.md' contains a link 'embeddings-similarity.md', but the target 'cookbooks/embeddings-similarity.md' is not found among documentation files. - Doc file 'cookbooks/token-classification-ner.md' contains a link '../index.md#-installation', but the doc 'index.md' does not contain an anchor '#-installation'. Test locally by running `make docs` and going to `http://localhost:8000`. Let me know if you're happy with the changes! --------- Co-authored-by: angpt <[email protected]>
1 parent a5ad3b6 commit ad72c13

File tree

15 files changed

+85
-85
lines changed

15 files changed

+85
-85
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Encoderfile compiles transformer encoders and optional classification heads into
99
### Check for Duplicates
1010

1111
Before creating a new issue or starting work:
12+
1213
- [ ] Search [existing issues](https://github.com/mozilla-ai/encoderfile/issues) for duplicates
1314
- [ ] Check [open pull requests](https://github.com/mozilla-ai/encoderfile/pulls) to see if someone is already working on it
1415
- [ ] For bugs, verify it still exists in the `main` branch

README.md

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -50,65 +50,7 @@ Encoderfiles can run as:
5050
- CLI for batch processing
5151
- MCP server (Model Context Protocol)
5252

53-
```mermaid
54-
flowchart LR
55-
%% Styling
56-
classDef asset fill:#e1f5fe,stroke:#01579b,stroke-width:2px,color:#000;
57-
classDef tool fill:#fff8e1,stroke:#ff6f00,stroke-width:2px,stroke-dasharray: 5 5,color:#000;
58-
classDef process fill:#fff3e0,stroke:#e65100,stroke-width:2px,color:#000;
59-
classDef artifact fill:#f5f5f5,stroke:#616161,stroke-width:2px,color:#000;
60-
classDef service fill:#e8f5e9,stroke:#1b5e20,stroke-width:2px,color:#000;
61-
classDef client fill:#e3f2fd,stroke:#0277bd,stroke-width:2px,stroke-dasharray: 5 5,color:#000;
62-
63-
subgraph Inputs ["1. Input Assets"]
64-
direction TB
65-
Onnx["ONNX Model<br/>(.onnx)"]:::asset
66-
Tok["Tokenizer Data<br/>(tokenizer.json)"]:::asset
67-
Config["Runtime Config<br/>(config.yml)"]:::asset
68-
end
69-
70-
style Inputs fill:#e3f2fd,stroke:#0277bd,stroke-width:2px,stroke-dasharray: 5 5,color:#01579b
71-
72-
subgraph Compile ["2. Compile Phase"]
73-
Compiler["Encoderfile Compiler<br/>(CLI Tool)"]:::asset
74-
end
75-
76-
style Compile fill:#e3f2fd,stroke:#0277bd,stroke-width:2px,stroke-dasharray: 5 5,color:#01579b
77-
78-
subgraph Build ["3. Build Phase"]
79-
direction TB
80-
Builder["Wrapper Process<br/>(Embeds Assets + Runtime)"]:::process
81-
end
82-
83-
style Build fill:#fff8e1,stroke:#ff8f00,stroke-width:2px,color:#e65100
84-
85-
subgraph Output ["4. Artifact"]
86-
Binary["Single Binary Executable<br/>(Static File)"]:::artifact
87-
end
88-
style Output fill:#fafafa,stroke:#546e7a,stroke-width:2px,stroke-dasharray: 5 5,color:#546e7a
89-
90-
subgraph Runtime ["5. Runtime Phase"]
91-
direction TB
92-
%% Added fa:fa-server icons
93-
Grpc["fa:fa-server gRPC Server<br/>(Protobuf)"]:::service
94-
Http["fa:fa-server HTTP Server<br/>(JSON)"]:::service
95-
MCP["fa:fa-server MCP Server<br/>(MCP)"]:::service
96-
%% Added fa:fa-cloud icon
97-
Client["fa:fa-cloud Client Apps /<br/>MCP Agent"]:::client
98-
end
99-
style Runtime fill:#f1f8e9,stroke:#2e7d32,stroke-width:2px,color:#1b5e20
100-
101-
102-
%% Connections
103-
Onnx & Tok & Config --> Builder
104-
Compiler -.->|"Orchestrates"| Builder
105-
Builder -->|"Outputs"| Binary
106-
107-
%% Runtime Connections
108-
Binary -.->|"Executes"| Grpc
109-
Binary -.->|"Executes"| Http
110-
Grpc & Http & MCP-->|"Responds to"| Client
111-
```
53+
![Build Diagram](docs/assets/diagram.png)
11254

11355
### Supported Architectures
11456

docs/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--8<-- "CODE_OF_CONDUCT.md"

docs/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--8<-- "CONTRIBUTING.md"

docs/assets/diagram.mmd

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
flowchart TD
2+
subgraph Build Process
3+
subgraph Inputs ["1. Input Assets"]
4+
direction TB
5+
Onnx["ONNX Model<br/>(.onnx)"]:::asset
6+
Tok["Tokenizer Data<br/>(tokenizer.json)"]:::asset
7+
Config["Runtime Config<br/>(config.yml)"]:::asset
8+
end
9+
10+
subgraph Compile ["2. Compile Phase"]
11+
Compiler["Encoderfile Compiler<br/>(CLI Tool)"]:::asset
12+
end
13+
14+
subgraph Build ["3. Build Phase"]
15+
direction TB
16+
Builder["Wrapper Process<br/>(Embeds Assets + Runtime)"]:::process
17+
end
18+
19+
subgraph Output ["4. Artifact"]
20+
Binary["Single Binary Executable<br/>(Static File)"]:::artifact
21+
end
22+
23+
subgraph Runtime ["5. Runtime Phase"]
24+
direction TB
25+
%% Added fa:fa-server icons
26+
Grpc["fa:fa-server gRPC Server<br/>(Protobuf)"]:::service
27+
Http["fa:fa-server HTTP Server<br/>(JSON)"]:::service
28+
MCP["fa:fa-server MCP Server<br/>(MCP)"]:::service
29+
%% Added fa:fa-cloud icon
30+
Client["fa:fa-cloud Client Apps /<br/>MCP Agent"]:::client
31+
end
32+
33+
%% Connections
34+
Onnx & Tok & Config --> Builder
35+
Compiler -.->|"Orchestrates"| Builder
36+
Builder -->|"Outputs"| Binary
37+
38+
%% Runtime Connections
39+
Binary -.->|"Executes"| Grpc
40+
Binary -.->|"Executes"| Http
41+
Grpc & Http & MCP-->|"Responds to"| Client
42+
end

docs/assets/diagram.png

299 KB
Loading

docs/assets/encoderfile.png

-46.6 KB
Binary file not shown.

docs/assets/encoderfile_logo.png

89.9 KB
Loading

docs/cookbooks/token-classification-ner.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This cookbook walks through building, deploying, and using a Named Entity Recogn
1212

1313
## Prerequisites
1414

15-
- `encoderfile` CLI tool installed ([Installation Guide](../index.md#-installation))
15+
- `encoderfile` CLI tool installed ([Installation Guide](../index.md#1-install-cli))
1616
- Python with `optimum[exporters]` for ONNX export
1717
- `curl` for testing the API
1818

@@ -366,10 +366,10 @@ curl http://localhost:8080/health
366366

367367
## Next Steps
368368

369-
- **[Sequence Classification Cookbook](sequence-classification-sentiment.md)** - Build a sentiment analyzer
370-
- **[Embedding Cookbook](embeddings-similarity.md)** - Create a semantic search engine
371-
- **[Transforms Reference](../transforms/reference.md)** - Learn about custom post-processing
372-
- **[API Reference](../reference/api-reference.md)** - Complete API documentation
369+
- **[Transforms Guide](../transforms/index.md)** - Learn about custom post-processing with Lua scripts
370+
- **[Transforms Reference](../transforms/reference.md)** - Complete transforms API documentation
371+
- **[API Reference](../reference/api-reference.md)** - REST, gRPC, and MCP endpoint specifications
372+
- **[CLI Reference](../reference/cli.md)** - Full documentation for build, serve, and infer commands
373373

374374
---
375375

docs/getting-started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ encoderfile build -f config.yml
250250

251251
- Ensure the model directory has `model.onnx`, `tokenizer.json`, and `config.json`
252252
- Verify the model type matches the architecture
253-
- See [BUILDING.md](../BUILDING.md) for detailed troubleshooting
253+
- See our guide on [building](reference/building.md) for detailed troubleshooting
254254

255255
### Server Won't Start
256256

@@ -266,7 +266,7 @@ encoderfile build -f config.yml
266266

267267
## Next Steps
268268

269-
- **[BUILDING.md](../BUILDING.md)** - Complete build guide with advanced configuration options
270-
- **[CLI Reference](cli.md)** - Full command-line documentation
271-
- **[API Reference](api-reference.md)** - REST, gRPC, and MCP API documentation
272-
- **[Contributing](../CONTRIBUTING.md)** - Help improve encoderfile
269+
- **[Guide on building](reference/building.md)** - Complete build guide with advanced configuration options
270+
- **[CLI Reference](reference/cli.md)** - Full command-line documentation
271+
- **[API Reference](reference/api-reference.md)** - REST, gRPC, and MCP API documentation
272+
- **[Contributing](CONTRIBUTING.md)** - Help improve encoderfile

0 commit comments

Comments
 (0)