doc: update README.md
All checks were successful
Build and deploy / deploy (push) Successful in 2m5s
All checks were successful
Build and deploy / deploy (push) Successful in 2m5s
This commit is contained in:
parent
f3d4257a4b
commit
db84312a96
1 changed files with 58 additions and 18 deletions
76
README.md
76
README.md
|
@ -1,41 +1,81 @@
|
||||||
# Website
|
<h1 align="center">
|
||||||
|
<br>
|
||||||
|
<img src="https://guardianproject.dev/jasima/lukin/raw/branch/main/pngs/logomark-colour-w1024.png" alt="jasima.app">
|
||||||
|
<br>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<img
|
||||||
|
alt="Language: Typescript"
|
||||||
|
src="https://img.shields.io/badge/lanuage-typescript-3178c6?style=flat-square">
|
||||||
|
<a href="https://opensource.org/licenses/BSD-2-Clause">
|
||||||
|
<img alt="Licence: BSD 2-Clause" src="https://img.shields.io/badge/license-bsd%202--clause-orange?style=flat-square">
|
||||||
|
</a>
|
||||||
|
<img alt="Lifecycle: Experimental" src="https://img.shields.io/badge/lifecycle-experimental-339999?style=flat-square">
|
||||||
|
<br>
|
||||||
|
<a href="https://www.jasima.app/">
|
||||||
|
<img alt="Website" src="https://img.shields.io/website?url=https%3A//www.jasima.app&style=flat-square">
|
||||||
|
</a>
|
||||||
|
<a href="https://guardianproject.dev/jasima/lipu-pali/issues">
|
||||||
|
<img alt="Issues" src="https://img.shields.io/gitea/issues/open/jasima/lipu-pali?gitea_url=https%3A%2F%2Fguardianproject.dev&style=flat-square">
|
||||||
|
</a>
|
||||||
|
<a href="https://opencollective.org/guardianproject">
|
||||||
|
<img alt="Open Collective backers and sponsors" src="https://img.shields.io/opencollective/all/guardianproject?style=flat-square">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
## lipu pali pi ilo jasima
|
||||||
|
|
||||||
|
*Main website and user guide.*
|
||||||
|
|
||||||
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
|
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
|
||||||
|
A Nix flake is included that allows installation of all the tools required for development.
|
||||||
|
Deployment happens in a Forgejo action which builds and deploys the result to Netlify.
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ yarn
|
nix develop --command npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Local Development
|
### Local Development
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ yarn start
|
nix develop --command npm run start
|
||||||
```
|
```
|
||||||
|
|
||||||
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
|
This command starts a local development server and opens up a browser window.
|
||||||
|
Most changes are reflected live without having to restart the server.
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ yarn build
|
nix develop --command npm run docusaurus gen-api-docs api # Generates the OpenAPI documentation
|
||||||
|
nix develop --command npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
||||||
|
|
||||||
### Deployment
|
### Deploy
|
||||||
|
|
||||||
Using SSH:
|
```bash
|
||||||
|
nix develop --command netlify deploy
|
||||||
```
|
|
||||||
$ USE_SSH=true yarn deploy
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Not using SSH:
|
### Copyright
|
||||||
|
|
||||||
```
|
Copyright © 2022-2025 SR2 Communications Limited.
|
||||||
$ GIT_USER=<Your GitHub username> yarn deploy
|
|
||||||
```
|
|
||||||
|
|
||||||
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
||||||
|
following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||||
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||||
|
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue