Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bluesky-social/bsky-docs
Bluesky API documentation
https://github.com/bluesky-social/bsky-docs
Last synced: 14 days ago
JSON representation
Bluesky API documentation
- Host: GitHub
- URL: https://github.com/bluesky-social/bsky-docs
- Owner: bluesky-social
- License: other
- Created: 2023-10-27T04:58:54.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-13T00:19:50.000Z (7 months ago)
- Last Synced: 2024-04-13T23:06:12.677Z (7 months ago)
- Language: TypeScript
- Homepage: https://www.docs.bsky.app/
- Size: 33.1 MB
- Stars: 37
- Watchers: 9
- Forks: 31
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE-CC-BY.txt
- Support: docs/support/_category_.json
Awesome Lists containing this project
README
# docs.bsky.app
This repository contains source code for the Bluesky developer documentation website:
This site includes tutorials, a blog, guides, and HTTP API reference docs for the Bluesky app.
The AT Protocol documentation and specifications are a separate website ([atproto.com](https://atproto.com)) maintained at .
## Building The Docs
This website is built using [Docusaurus](https://docusaurus.io/), a static website generator in JavaScript.
To build the site, first you'll need node.js and `npm` installed locally. Run `npm install` to fetch dependencies.
To run a local development server (which you can browse at ):
npm start
To run a static build (output in `./build/`):
npm run build
The output can be served using any static contents hosting service.
## Updating HTTP API Reference
We use a forked version of [`atproto-openapi-types`](https://github.com/rdmurphy/atproto-openapi-types) to generate an OpenAPI schema from atproto lexicons. We use the [`docusaurus-openapi-docs`](https://github.com/PaloAltoNetworks/docusaurus-openapi-docs) plugin to convert the resulting OpenAPI schema to MDX files.
Running the MDX generation process requires `deno`.
Source code for these helpers are in `./atproto-openapi-types/`.
The raw Lexicon files are in `atproto-openapi-types/lexicons/`, with a helper script (`get-lexicons.sh`) which is run automatically by Github CI every day.
To re-generate the OpenAPI file:
deno task run
To re-generate all of the MDX files from the OpenAPI schema file:
npm run clear-and-gen-api-docs
You can test that the output is valid:
npx docusaurus-mdx-checker
Then you would usually check that the entire site can still build (this is slow):
# local dev server for preview
npm start# or for a static build
npm run build## Docs License
Documentation text is under Creative Commons Attribution (CC-BY).
Inline code examples, example data, and regular expressions are under Creative Commons Zero (CC-0, aka Public Domain) and copy/pasted without attribution.
Please see [LICENSE.txt]() with reminders about derivative works, and [LICENSE-CC-BY.txt]() for a copy of license legal text.