Skip to content

Commit

Permalink
add devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Aug 17, 2023
1 parent 2cafe1a commit 50d56e7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// format details: https://aka.ms/devcontainer.json
{
"name": "book.premai.io",
"image": "mcr.microsoft.com/devcontainers/python:3-bullseye",
"customizations": {"vscode": {"extensions": [
"DavidAnson.vscode-markdownlint",
"streetsidesoftware.code-spell-checker"
]}},
"postCreateCommand": "pip install --user -r requirements.txt",
"postStartCommand": "jupyter-book build -W . && python -m http.server -d _build/html",
"portsAttributes": {"8000": {"label": "Webserver", "onAutoForward": "notify"}}
}
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ We go beyond just mentioning the models, but also include things such as infrast

## Contributing

We understand that the current open source ecosystem is moving at light-speed. This source of this guide is available on GitHub at [`premAI-io/state-of-open-source-ai`](https://github.com/premAI-io/state-of-open-source-ai). Please do [create issues](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue) or [open pull requests](https://docs.github.com/en/get-started/quickstart/contributing-to-projects) with any feedback or contributions you may have.
We understand that the current open source ecosystem is moving at light-speed. This source of this guide is available on GitHub at {{ repo_url }}. Please do [create issues](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue) or [open pull requests](https://docs.github.com/en/get-started/quickstart/contributing-to-projects) with any feedback or contributions you may have.

### Running locally

Open this repository ({{ repo_url }}) in a [Dev Container](https://containers.dev), or alternatively follow the instructions below:

```sh
pip install -r requirements.txt
jupyter-book build --all -W .
python -m http.server -d _build/html
```

## Table of Contents

Expand Down
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ repository:
branch: main
only_build_toc_files: true
parse:
myst_substitutions:
repo_url: https://github.com/premAI-io/state-of-open-source-ai
myst_enable_extensions: # https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html
# - attrs_block
# - attrs_inline
Expand Down

0 comments on commit 50d56e7

Please sign in to comment.