refactor: remove web documentation

This commit is contained in:
Prad Nukala 2024-11-25 15:13:16 -05:00
parent e04d071ca7
commit 4cbada21a7
3 changed files with 7 additions and 126 deletions

View File

@ -0,0 +1,7 @@
package resolver
type DID string
func (d DID) String() string {
return string(d)
}

View File

@ -1,40 +0,0 @@
# `sonr` - Sonr Chain
[![Go Reference](https://pkg.go.dev/badge/github.com/onsonr/sonr.svg)](https://pkg.go.dev/github.com/onsonr/sonr)
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/onsonr/sonr)
![GitHub Release Date - Published_At](https://img.shields.io/github/release-date/onsonr/sonr)
[![Static Badge](https://img.shields.io/badge/homepage-sonr.io-blue?style=flat-square)](https://sonr.io)
[![Go Report Card](https://goreportcard.com/badge/github.com/onsonr/sonr)](https://goreportcard.com/report/github.com/onsonr/sonr)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=sonrhq_sonr&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=sonr-io_sonr)
> Sonr is a combination of decentralized primitives. Fundamentally, it is a peer-to-peer identity and asset management system that leverages DID documents, Webauthn, and IPFS—providing users with a secure, portable decentralized identity.
# Documentation
1. [Quick Start](https://github.com/onsonr/sonr/wiki/1-%E2%80%90-Quick-Start)
2. [Chain Modules](https://github.com/onsonr/sonr/wiki/2-%E2%80%90-Chain-Modules)
3. [System Architecture](https://github.com/onsonr/sonr/wiki/3-%E2%80%90-System-Architecture)
4. [Token Economy](https://github.com/onsonr/sonr/wiki/4-%E2%80%90-Token-Economy)
5. [Service Mangement](https://github.com/onsonr/sonr/wiki/5-%E2%80%90-Service-Management)
6. [Design System](https://github.com/onsonr/sonr/wiki/6-%E2%80%90-Design-System)
7. [Self Custody](https://github.com/onsonr/sonr/wiki/7-%E2%80%90-Self-Custody)
# Stats
![Alt](https://repobeats.axiom.co/api/embed/8d0b17e889942889c5b6e632da09bd597efd84c4.svg "Repobeats analytics image")
# Acknowledgements
Sonr would not have been possible without the direct and indirect support of the following individuals:
- **Juan Benet**: For the IPFS Ecosystem.
- **Satoshi Nakamoto**: For Bitcoin.
- **Steve Jobs**: For User first UX.
- **Tim Berners-Lee**: For the Internet.
# Community & Support
- [Forum](https://github.com/onsonr/sonr/discussions)
- [Issues](https://github.com/onsonr/sonr/issues)
- [Twitter](https://sonr.io/twitter)
- [Dev Chat](https://sonr.io/discord)

View File

@ -1,86 +0,0 @@
version: "3"
vars:
ROOT_DIR:
sh: git rev-parse --show-toplevel
tasks:
clean:
internal: true
cmds:
- rm -rf .task
- rm -rf pkg/design/node_modules
- rm -rf .out
# ╭──────────────────────────────────────────────────╮
# │ Generate Commands │
# ╰──────────────────────────────────────────────────╯
gen:tailwind:
cmds:
- cd ./pkg/webapp && bun run build
- cp ./pkg/webapp/components/styles/styles.css ./cmd/hway/styles.css
gen:pkl:
sources:
- pkl/base.types/Ctx.pkl
- pkl/base.types/DWN.pkl
- pkl/base.types/ORM.pkl
cmds:
- for: sources
cmd: go run github.com/apple/pkl-go/cmd/pkl-gen-go {{ .ITEM }}
- task: clean
gen:templ:
cmds:
- templ generate
# ╭──────────────────────────────────────────────────╮
# │ Build Commands │
# ╰──────────────────────────────────────────────────╯
build:motr:
env:
GOOS: js
GOARCH: wasm
cmds:
- go build -o build/app.wasm ./cmd/motr/main.go
build:hway:
cmds:
- task: gen:tailwind
- task: gen:templ
- go build -o build/hway ./cmd/hway/main.go
# ╭──────────────────────────────────────────────────╮
# │ Serve Commands │
# ╰──────────────────────────────────────────────────╯
serve:hway:
cmds:
- task: build:hway
- ./build/hway
# ╭──────────────────────────────────────────────────╮
# │ Deploy Commands │
# ╰──────────────────────────────────────────────────╯
deploy:buf:
dir: proto
cmds:
- bunx buf dep update
- bunx buf build
- bunx buf push
deploy:hway:
dir: cmd/hway
cmds:
- task: gen:design
- bunx wrangler deploy
deploy:pkl:
cmds:
- bunx pkl project package pkl/*/
- |
for dir in .out/*/; do
folder=$(basename "$dir")
rclone copy "$dir" "r2:pkljar/$folder"
done
- task: clean