Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
71ce410
first draft of docs
burtenshaw Nov 4, 2025
78048e5
Merge branch 'main' into docs-first-draft
burtenshaw Nov 12, 2025
ac78936
hardcode deploy branch to test
burtenshaw Nov 17, 2025
2fa6c36
fix docs on main
burtenshaw Nov 17, 2025
3c76888
back to branch
burtenshaw Nov 17, 2025
f11e866
move docs config to dir
burtenshaw Nov 17, 2025
b7a32ef
update action to match docs config
burtenshaw Nov 17, 2025
be436d9
add docs instructions
burtenshaw Nov 17, 2025
1d6b8c3
add basic home page
burtenshaw Nov 17, 2025
0fb32c5
add docs quickstart
burtenshaw Nov 17, 2025
92eedea
docs building custom environments with
burtenshaw Nov 17, 2025
3741620
docs for `openenv` commands and utilities
burtenshaw Nov 17, 2025
822dd94
docs for core module
burtenshaw Nov 17, 2025
77a9923
update homepage link
burtenshaw Nov 17, 2025
db2b684
add environment grid with links to hf
burtenshaw Nov 17, 2025
d9dfd1f
move docs yaml back to parent
burtenshaw Nov 17, 2025
3f4fb24
fix gh action to match
burtenshaw Nov 17, 2025
74c1221
re-fix docs location
burtenshaw Nov 17, 2025
fb42755
fix action
burtenshaw Nov 17, 2025
c9c58d0
pin docs dir in repo
burtenshaw Nov 17, 2025
2085b8d
another fix on docs_dir
burtenshaw Nov 17, 2025
2d9dd7e
fix autopython config for docs
burtenshaw Nov 17, 2025
de50042
update environments with existing envs
burtenshaw Nov 17, 2025
52ce20e
use mkdocs style tip blocks
burtenshaw Nov 17, 2025
fa2ed82
fix warning on home page
burtenshaw Nov 17, 2025
f04f181
fix discord logo in button
burtenshaw Nov 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy Docs

on:
push:
branches:
- docs-first-draft
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mkdocs-include-markdown-plugin "mkdocstrings[python]" pymdown-extensions

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Build site
run: mkdocs build --config-file docs/mkdocs.yml

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: site

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

30 changes: 30 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# OpenEnv docs workflow

Use this guide to preview and build the MkDocs site that lives under `docs/`.

## 1. Install dependencies

```bash
uv venv
source .venv/bin/activate
uv pip install mkdocs-material mkdocs-include-markdown-plugin "mkdocstrings[python]" pymdown-extensions
```

The packages mirror what the GitHub Pages workflow installs, so local builds match CI.

## 2. Run the live preview server

```bash
mkdocs serve --config-file docs/mkdocs.yml
```

The site is served at `http://127.0.0.1:8000/` with automatic reloads whenever files in `docs/` or `docs/mkdocs.yml` change.

## 3. Produce the production build

```bash
mkdocs build --config-file docs/mkdocs.yml --clean --site-dir site
```

This regenerates the static HTML into `site/`, matching `.github/workflows/docs.yml`. Inspect the output locally.

37 changes: 37 additions & 0 deletions docs/cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# CLI (`openenv_cli`)

The `openenv` CLI provides a set of commands for building, validating, and pushing environments to Hugging Face Spaces or a custom Docker registry. For an end-to-end tutorial on building environments with OpenEnv, see the [building an environment](environment-builder.md) guide.

## `openenv init`

::: openenv_cli.commands.init

## `openenv build`

::: openenv_cli.commands.build

## `openenv validate`

::: openenv_cli.commands.validate

## `openenv push`

::: openenv_cli.commands.push

## `openenv serve`

::: openenv_cli.commands.serve

# API Reference

## Entry point

::: openenv_cli.__main__

## CLI helpers

::: openenv_cli._cli_utils

## Validation utilities

::: openenv_cli._validation
29 changes: 29 additions & 0 deletions docs/core.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Core API Reference

The `openenv-core` package provides the core abstractions for building and running environments. For an end-to-end tutorial on building environments with OpenEnv, see the [building an environment](environment-builder.md) guide.

## Core runtime (`core`)

### Environment server primitives

::: core.env_server.interfaces

### HTTP server utilities

::: core.env_server.http_server

### Web interface helpers

::: core.env_server.web_interface

### Client contracts

::: core.http_env_client

### Shared dataclasses

::: core.client_types

### Container providers

::: core.containers.runtime.providers
Loading