Skip to content

Commit 6f25d68

Browse files
authoredNov 1, 2023
Reorganize Lava Docs (#180)
* add cosmoshub chain page template * add ethereum chain pages template * add lava chain pages * update cosmoshub page * update ethereum chain page * update lava chain page * fix cosmoshub pages * fix avalanche chain page * upgrade docusaurus & tailwindcss * change navbars (top & side) * swizzle DocCard & DocCardList * add chains landing page * add banners & banner templates to static img folder * add banners to tops of main pages * add latestversion react component * add blockchain integration request link to chains page * update docs thumbnail (theme config image) * add starknet public endpoints to starknet-dev page * add official endpoints to lava dev page * update lava chain provider page * update chain pages with new sdk interfaces * update README * fix README * move discord README widget * adjust README formatting * correct discord link in README * update README order * rename section to Lava Protocol * repair formatting in access-intro * finalize intro page; add version information * spruce up tutorials page * restore sdk install example to sdk-prerequisites * add shields & wip note to supported chains page * fix typo, update avalanche methods * add caution popout to axelar node page * fix chain command on axelar chain page * add emojis to celo node page * add supported methods to celo chain page * update cosmoshub-dev sdk input * add content to cosmoshub node page * add content to cosmoshub chain page * correct chainIds on ETH dev page * add content to eth node page * add content to eth chain page * remove sdk output from lava dev page * add content to lava node page * add cosmos icon file for tutorials page * add content to lava chain page * fix lava supported method formatting * add kapa.ai demo script to docusaurus config * fix broken links
1 parent 340a8b9 commit 6f25d68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+3359
-2139
lines changed
 

‎README.md

+82-17
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,98 @@
1-
# Welcome to Lava Docs 📕
2-
This repository contains documentation for Lava.
3-
The source is generated to [Lava Docs website](https://docs.lavanet.xyz/), but can also be browsed as plain source in the [Docs folder](/docs/).
1+
![Banner](static/img/banner/Chains.jpg)
2+
3+
# Lava Documentation 📕
4+
5+
[![Website](https://img.shields.io/badge/WEBSITE-https%3A%2F%2Fdocs.lavanet.xyz-green?style=for-the-badge)](https://docs.lavanet.xyz)   [![Discord](https://img.shields.io/discord/963778337904427018?color=green&logo=discord&logoColor=white&style=for-the-badge)](https://discord.gg/EKzbc6bx)
6+
7+
8+
## Overview 🔎
9+
10+
This repository (**@lavanet/docs**) contains technical documentation for the Lava ecosystem. The most recent version of this repository is deployed to the Lava docs [website](https://docs.lavanet.xyz/) and is viewable there. If you're averse to rich formatting, Lava Documentation can also be browsed as plain source in the markdown files available in the [docs folder](/docs/) of this repository. The Lava docs website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator, and deployed using the [Netlify Web Platform](https://www.netlify.com/).
11+
12+
Contents include:
13+
14+
- Information on Lava's supported chains
15+
- Installation & Setup Guides for Validators, Providers, and Developers
16+
- Network & Protocol Details on Lava's Unique Features
17+
- Links to in-demand RPC & Web3 APIs
18+
19+
## Contribution 👥
20+
21+
Contributing to the documentation of Lava is a rewarding way to give back to the ecosystem. We always welcome contributors with love & kindness. After reviewing this README, please read the [contribution](CONTRIBUTING.md) guide to help you get started.
22+
23+
24+
## Deployment 🚀
25+
26+
### Status
427

5-
## Deployment
628
[![Netlify Status](https://api.netlify.com/api/v1/badges/58c0a448-7af0-48d3-8e29-86fc4a6f4868/deploy-status)](https://app.netlify.com/sites/sage-swan-13ac7b/deploys)
729

8-
`main` branch is automatically deployed to docs site, and other branches and pull requests leverage Netlify deploy.
30+
### Process
31+
The `main` branch of this repository is automatically deployed to our docs site, and other branches and pull requests leverage Netlify deploy. Please note that unless you are a recognized contributor of this repository, each attempted PR generates a Netlify approval that will prevent your pull request from being merged. Once the request is approved and a Netlify deploy preview is generated, a Netlify deploy preview will appear in the body of your PR as `😎 Deploy Preview`. This deploy preview will be audited by a docs maintainer before merging your pull request.
32+
33+
## Local Development 🔧
34+
35+
### 1. Fork this repository!
36+
37+
We recommend naming your fork `lava-docs` to distinguish from other projects which might have similar naming conventions.
938

10-
## Community & Contribution 😻
11-
We welcome contributors with love, please read the [contribution](CONTRIBUTING.md) guide to help you get started.
39+
### 2. Clone your fork
1240

13-
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
41+
SSH **(recommended)**
1442

15-
## Installation
43+
```bash
44+
git clone git@github.com:Your-User-Name-Here/lava-docs.git
1645
```
17-
$ yarn install
46+
47+
HTTPS
48+
49+
```bash
50+
git clone https://github.com/Your-User-Name-Here/lava-docs.git
1851
```
19-
Local Development
52+
53+
### 3. Set up environmental variables
54+
55+
```bash
56+
cd lava-docs/
57+
cp .env.example .env
2058
```
21-
$ yarn start
59+
60+
Change the contents of your environmental variables(`.env`) file to the following:
61+
2262
```
23-
Build
63+
ALGOLIA_APP_ID=demo
64+
ALGOLIA_API_KEY=demo
65+
ALGOLIA_INDEX_NAME=demo
2466
```
25-
$ yarn build
67+
68+
Algolia search needs values assigned to these in order to start. For local docs instances (w/ non-functional search), any dummy values will work.
69+
70+
### 4. Install all packages
71+
2672
```
27-
Deployment:
28-
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.
73+
yarn install
74+
```
75+
76+
### 5. Host a local preview of the docs (*Optional*)
2977

3078
```
31-
$ GIT_USER=<Your GitHub username> yarn deploy
79+
yarn start
3280
```
3381

82+
Your preview will dynamically change/hotload as you make changes to files.
83+
84+
### 6. Build a local deployment of the docs (*Optional*)
85+
86+
```
87+
yarn build
88+
```
89+
90+
Your build will appear in the `./build/` folder of your docs directory.
91+
92+
### 7. Deploy to Github (*Optional*)
93+
94+
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.
95+
96+
```
97+
$ GIT_USER=<Your GitHub username> yarn deploy
98+
```

‎docs/access-apis/sdk-prerequisites.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import RoadmapItem from '@site/src/components/RoadmapItem';
77

88
# Looking for our SDK? 🔎
99

10-
![SDK Install Example](/img/tutorial/sdk/sdk-install.gif)
10+
![SDK Install Example](/img/tutorial/sdk/sdk-install.gif)
1111

1212
[<RoadmapItem icon="🚀" title="Get Started Right Away!" description="build an example application"/>](/sdk-getting-started)
1313

0 commit comments

Comments
 (0)
Please sign in to comment.