-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bugs in documentation and reenable algolia search #3781
Changes from all commits
286a752
4f9e713
28c1929
f577d04
a87dd7e
483c683
ec3c043
06c2a30
08b8f1c
55c2d05
f74d5a5
e71a1a6
7838207
475ea98
63c2635
7f12c20
54264e5
c78ab36
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_label: "CLI Reference" | ||
sidebar_label: 'CLI Reference' | ||
sidebar_position: 7 | ||
--- | ||
|
||
|
@@ -45,7 +45,7 @@ Flags: | |
Use "bacalhau [command] --help" for more information about a command. | ||
``` | ||
|
||
## Cancel | ||
## Cancel | ||
|
||
Cancels a job that was previously submitted and stops it running if it has not yet completed. | ||
|
||
|
@@ -60,7 +60,7 @@ Flags: | |
--quiet Do not print anything to stdout or stderr | ||
``` | ||
|
||
#### Examples | ||
#### Examples | ||
|
||
``` | ||
Examples: | ||
|
@@ -111,21 +111,21 @@ An example job in YAML format: | |
|
||
```yaml | ||
spec: | ||
engine: Docker | ||
verifier: Noop | ||
publisher: IPFS | ||
docker: | ||
image: ubuntu | ||
entryPoint: | ||
- echo | ||
parameters: | ||
- Hello | ||
- World | ||
outputs: | ||
- name: outputs | ||
path: /outputs | ||
engine: Docker | ||
verifier: Noop | ||
publisher: IPFS | ||
docker: | ||
image: ubuntu | ||
entryPoint: | ||
- echo | ||
parameters: | ||
- Hello | ||
- World | ||
outputs: | ||
- name: outputs | ||
path: /outputs | ||
deal: | ||
concurrency: 1 | ||
concurrency: 1 | ||
``` | ||
|
||
### UCAN Invocation format | ||
|
@@ -283,7 +283,7 @@ Flags: | |
--local Run the job locally. Docker is required | ||
--memory string Job Memory requirement (e.g. 500Mb, 2Gb, 8Gb). | ||
--min-bids int Minimum number of bids that must be received before concurrency-many bids will be accepted (at random) | ||
--network network-type Networking capability required by the job (default "nats") | ||
--network network-type Networking capability required by the job (default None) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert this, the default network is nats. |
||
--node-details Print out details of all nodes (overridden by --id-only). | ||
--output-dir string Directory to write the output to. | ||
-o, --output-volumes strings name:path of the output data volumes. 'outputs:/outputs' is always added. | ||
|
@@ -354,7 +354,7 @@ bacalhau list | |
bacalhau list --output json | ||
``` | ||
|
||
## Logs | ||
## Logs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. a lot of trailing spaces have been added here and else where, we should avoid this. |
||
|
||
Retrieves the log output (stdout, and stderr) from a job. | ||
If the job is still running it is possible to follow the logs after the previously generated logs are retrieved. | ||
|
@@ -370,7 +370,7 @@ Flags: | |
-h, --help help for logs | ||
``` | ||
|
||
#### Examples | ||
#### Examples | ||
|
||
``` | ||
Examples: | ||
|
@@ -381,6 +381,7 @@ Examples: | |
bacalhau logs ebd9bf2f | ||
``` | ||
|
||
|
||
## Run Python | ||
|
||
``` | ||
|
@@ -431,6 +432,7 @@ Flags: | |
--wait-timeout-secs int When using --wait, how many seconds to wait for the job to complete before giving up. (default 600) | ||
``` | ||
|
||
|
||
## Serve | ||
|
||
``` | ||
|
@@ -444,15 +446,15 @@ Examples: | |
bacalhau serve | ||
# or | ||
bacalhau serve --node-type requester | ||
|
||
# Start a private bacalhau hybrid node that acts as both compute and requester | ||
bacalhau serve --node-type compute --node-type requester | ||
# or | ||
bacalhau serve --node-type compute,requester | ||
|
||
# Start a private bacalhau node with a persistent local IPFS node | ||
BACALHAU_SERVE_IPFS_PATH=/data/ipfs bacalhau serve | ||
|
||
# Start a public bacalhau requester node | ||
bacalhau serve --peer env --private-internal-ipfs=false | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ sidebar_position: 2 | |
This page is an introduction to a landscape analysis of general-purpose compute frameworks. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert changes to this file. |
||
Its purpose is to map the roughness of existing technologies and serve as an introduction to key concepts for those who are new to the Bacalhau community. | ||
|
||
Watch the video below for a short walkthrough and continue to the sections below to learn more about landscape analysis within the compute ecosystem. | ||
Watch the video below for a short walkthrough and continue to the sections below to learn more about landscape analysis within the compute ecosystem. | ||
More content is available on the [full slide deck](https://docs.google.com/presentation/d/1wOh-ASGshgc1Ivkoyaz9zGpVGTxX9LDMZQB4-eXOBP4/edit?usp=sharing) and in the [code repository](https://github.com/winderai/bacalhau-landscape-analysis-benchmarks), where you'll find: | ||
|
||
* A description of each technology and how they're positioned in the compute space | ||
|
@@ -26,7 +26,7 @@ Ultimately, Bacalhau aims to offer efficient distributed computation -- to achie | |
The traditional compute landscape counts dozens of frameworks capable of processing generic workloads. | ||
Some are specifically designed to take advantage of data locality, by bringing the computation close to where data lives. The landscape analysis provided here reviewed a selection of these tools in order to summarize their pros and cons. | ||
|
||
> The [full slide deck](https://docs.google.com/presentation/d/1wOh-ASGshgc1Ivkoyaz9zGpVGTxX9LDMZQB4-eXOBP4/edit?usp=sharing) contains a detailed overview of the compute frameworks and include sample code snippets. | ||
> The [full slide deck](https://docs.google.com/presentation/d/1wOh-ASGshgc1Ivkoyaz9zGpVGTxX9LDMZQB4-eXOBP4/edit?usp=sharing) contains a detailed overview of the compute frameworks and include sample code snippets. | ||
|
||
|
||
![image](../../static/img/landscape/landscape.png 'Compute Framework Analysis') | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,14 +14,14 @@ The primary objective of the Bacalhau documentation style guide is to help autho | |
|
||
Our goal is to use conversational tone that is natural, and friendly towards the reader and also ensure that the document's content is simple and easy to follow. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert changes to this file |
||
|
||
### Friendly and Open | ||
### Friendly and Open | ||
|
||
As we write for a large global audience, we aim for a universally accessible voice. | ||
|
||
- Maintain a friendly, informal tone, but focus on being clear and concise in a knowledgeable manner. | ||
- Avoid the use of slangs and colloquial language. | ||
- Avoid offensive language in all forms, and toward all identities and cultures. | ||
- Write in the second person (e.g. **You can…**), present tense to guide the reader to their intended outcome. | ||
- Write in the second person (e.g. **You can…**), present tense to guide the reader to their intended outcome. | ||
- When writing consider that many users are not native English speakers. | ||
- Use languages that encourages readers and walk them through the steps to achieve the outcome they’re looking for. | ||
|
||
|
@@ -38,15 +38,15 @@ Our documentation should reflect our purpose, giving the appropriate amount of t | |
- In non CLI-based references, capitalize **Bacalhau**, **Docker**, **Compute** and other program/project names. | ||
- Test each code snippet and example, walking through each step to ensure accuracy as it's written. | ||
|
||
With these guidelines, we can provide a comprehensive set of documentation that is clear, actionable, and helpful. | ||
With these guidelines, we can provide a comprehensive set of documentation that is clear, actionable, and helpful. | ||
|
||
## Structure | ||
|
||
The Bacalhau documentation set should include articles and tutorials that have a consistent structure, which includes an introduction and the procedural steps necessary for a reader to get to their expected outcome. | ||
The Bacalhau documentation set should include articles and tutorials that have a consistent structure, which includes an introduction and the procedural steps necessary for a reader to get to their expected outcome. | ||
|
||
### Structure Guidelines | ||
|
||
The specific structure depends on the type of documentation you are writing. On general note, the documentation should include: an introduction, a conclusion, and any prerequisites necessary for a reader to get started. | ||
The specific structure depends on the type of documentation you are writing. On general note, the documentation should include: an introduction, a conclusion, and any prerequisites necessary for a reader to get started. | ||
|
||
Most of the tutorials and examples we publish are procedural, which walk the reader through accomplishing a task step-by-step. The structure for a procedural documentation should be: | ||
|
||
|
@@ -62,7 +62,7 @@ Need Support? (H2) | |
Contributing (H2) | ||
``` | ||
|
||
If the documentation is conceptual: | ||
If the documentation is conceptual: | ||
|
||
``` | ||
Title (H1) | ||
|
@@ -80,12 +80,12 @@ In this way, readers can learn and hop to pertinent information as they need eff | |
|
||
## Formatting | ||
|
||
Our documentation is written in [Markdown markup language](https://www.markdownguide.org/basic-syntax/).The following rules explain how we organize and structure our writing. | ||
Our documentation is written in [Markdown markup language](https://www.markdownguide.org/basic-syntax/).The following rules explain how we organize and structure our writing. | ||
. | ||
|
||
### Titles | ||
|
||
All titles should follow [title case capitalization structure](https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case). | ||
All titles should follow [title case capitalization structure](https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case). | ||
|
||
``` | ||
❌ Get started with bacalhau | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
label: "Advanced Guides" | ||
position: 110 | ||
position: 5 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
label: "API Guide" | ||
position: 2 | ||
label: "API" | ||
position: 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
sidebar_label: Agent | ||
sidebar_label: Agents | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keep this singular |
||
--- | ||
|
||
# Agent API Documentation | ||
|
@@ -113,3 +113,4 @@ This API provides detailed information about the node, including its peer ID and | |
} | ||
} | ||
``` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,19 @@ Welcome to the official API documentation for Bacalhau. This guide provides a de | |
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. revert changes to this file |
||
## Overview | ||
|
||
Bacalhau operates on an "API-first" approach, providing an interface for users to interact with the system programmatically. | ||
Bacalhau operates on an "API-first" approach, providing an interface for users to interact with the system programmatically. | ||
|
||
- **Endpoint Prefix**: All APIs are versioned and prefixed with `/api/v1`. | ||
- **Default Port**: By default, Bacalhau listens on port `1234`. | ||
- **API Nodes**: | ||
- **API Nodes**: | ||
- **Orchestrator**: Handles user requests, schedules, and monitors jobs. Majority of Bacalhau's APIs are dedicated to Orchestrator interactions. These are accessible at `/api/v1/orchestrator`. | ||
- **Compute Nodes**: Acts as worker nodes and executes the jobs. Both Orchestrator and Compute nodes expose some common APIs under `/api/v1/agent` for querying agent info and health status. | ||
|
||
## Features | ||
|
||
### Label Filtering | ||
|
||
Bacalhau supports label filtering on certain endpoints, such as `/api/v1/orchestrator/jobs` and `/api/v1/orchestrator/nodes`. This mechanism works similarly to constraints, letting you narrow down your search based on certain criteria. | ||
Bacalhau supports label filtering on certain endpoints, such as `/api/v1/orchestrator/jobs` and `/api/v1/orchestrator/nodes`. This mechanism works similarly to constraints, letting you narrow down your search based on certain criteria. | ||
|
||
**Example**: | ||
```bash | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yaml is space sensitive, and it looks like you have made modifications here (I assume they were unintentional) please ensure this yaml is still valid and revert this change if its not.