-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: implement versioning documentation (#10)
* docs: implement versioning documentation * chore: update documentation version dropdown position to left * docs: update README with documentation management and release document pipeline instructions * chore: format document for the README.md * docs: update README.md and the build_publish_docs pipeline * chore: update build_publish_docs.yml pipeline * chore: update build_publish_docs.yml pipeline
- Loading branch information
1 parent
70abc69
commit 3ef6fc5
Showing
18 changed files
with
4,034 additions
and
2,485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
environment: github-pages | ||
|
||
steps: | ||
# Checkout repository code to access documentation files and source code | ||
- uses: actions/checkout@v4 | ||
|
||
# Setup Node.js environment with caching to optimize dependency installation | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 21 | ||
cache: yarn | ||
|
||
# Install all required Node.js packages and dependencies for documentation generation | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
working-directory: documentation | ||
|
||
# Build static documentation website with environment variables for proper URL configuration | ||
- name: Build website | ||
run: yarn build | ||
env: | ||
DOCS_BASE_URL: ${{ vars.DOCS_BASE_URL }} | ||
DOCS_URL: ${{ vars.DOCS_URL }} | ||
working-directory: documentation | ||
|
||
# Deploy built documentation to gh-pages branch for GitHub Pages hosting | ||
# Popular action to deploy to GitHub Pages: | ||
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# Build output to publish to the `gh-pages` branch: | ||
publish_dir: ./documentation/build | ||
# The following lines assign commit authorship to the official | ||
# GH-Actions bot for deploys to `gh-pages` branch: | ||
# https://github.com/actions/checkout/issues/13#issuecomment-724415212 | ||
# The GH actions bot is used by default if you didn't specify the two fields. | ||
# You can swap them out with your own user credentials. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:::info | ||
Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses. | ||
::: |
115 changes: 115 additions & 0 deletions
115
documentation/versioned_docs/version-1.0.0/features/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
--- | ||
sidebar_position: 4 | ||
title: Features | ||
--- | ||
|
||
import Disclaimer from './../_disclaimer.mdx'; | ||
|
||
<Disclaimer /> | ||
|
||
## API Endpoints | ||
|
||
### Store Credential | ||
- **Endpoint**: `/v1/credentials` | ||
- **Method**: POST | ||
- Stores encrypted credentials with optional ID | ||
- Returns URI, hash, and encryption key | ||
|
||
Test the service using `curl`: | ||
|
||
```bash | ||
curl -X POST http://localhost:3333/v1/credentials \ | ||
-H "Content-Type: application/json" \ | ||
-d '{ | ||
"bucket": "verifiable-credentials", | ||
"data": { | ||
"field1": "value1" | ||
} | ||
}' | ||
``` | ||
|
||
The service will respond similarly to the data below: | ||
|
||
```json | ||
{ | ||
"uri": "http://localhost:3333/v1/verifiable-credentials/e8b32169-582c-421a-a03f-5d1a7ac62d51.json", | ||
"hash": "d6bb7b579925baa4fe1cec41152b6577003e6a9fde6850321e36ad4ac9b3f30a", | ||
"key": "f3bee3dc18343aaab66d28fd70a03015d2ddbd5fd3b9ad38fff332c09014598d" | ||
} | ||
``` | ||
|
||
#### Request Payload | ||
|
||
| Field | Description | Required | | ||
|-------|-------------| -------- | | ||
| `bucket` | Name of the bucket where the data will be stored. | Yes | | ||
| `data` | The actual data to be stored, must be in JSON format. | Yes | | ||
|
||
#### Response Data | ||
|
||
| Field | Description | | ||
|-------|-------------| | ||
| `uri` | The link to the stored data. | | ||
| `hash` | A hash of the data, used to verify your data hasn't been changed. | | ||
| `key` | The symmetric key used to decrypt the encrypted data. | | ||
|
||
### Store Document | ||
- **Endpoint**: `/v1/documents` | ||
- **Method**: POST | ||
- Stores documents with computed hash | ||
- Returns URI and document hash | ||
|
||
Test the service using `curl`: | ||
|
||
```bash | ||
curl -X POST http://localhost:3333/v1/documents \ | ||
-H "Content-Type: application/json" \ | ||
-d '{ | ||
"bucket": "test-verifiable-credentials", | ||
"data": { | ||
"field1": "value1" | ||
} | ||
}' | ||
``` | ||
|
||
The service will respond similarly to the data below: | ||
|
||
```json | ||
{ | ||
"uri": "http://localhost:3333/v1/test-verifiable-credentials/2ad789c7-e513-4523-a826-ab59e1c423cd.json", | ||
"hash": "d6bb7b579925baa4fe1cec41152b6577003e6a9fde6850321e36ad4ac9b3f30a" | ||
} | ||
``` | ||
|
||
#### Request Payload | ||
|
||
| Field | Description | Required | | ||
|-------|-------------| -------- | | ||
| `bucket` | Name of the bucket where the data will be stored. | Yes | | ||
| `data` | The actual data to be stored, must be in JSON format. | Yes | | ||
|
||
#### Response Data | ||
|
||
| Field | Description | | ||
|-------|-------------| | ||
| `uri` | The link to the stored data. | | ||
| `hash` | A hash of the data, used to verify your data hasn't been changed. | | ||
|
||
## Storage Providers | ||
|
||
- **Local Storage**: File system storage for development | ||
- **Google Cloud Storage**: GCP bucket storage for production | ||
- **Amazon S3**: AWS S3 bucket storage for production | ||
|
||
## Security Features | ||
|
||
### Cryptography | ||
- SHA-256 hash computation | ||
- AES-256-GCM encryption | ||
- Secure key management | ||
- Data integrity verification | ||
|
||
### Configuration Options | ||
- Flexible storage provider selection | ||
- Environment-based configuration | ||
- Secure credential management |
Oops, something went wrong.