Skip to content

Commit 765c5f8

Browse files
Merge pull request 0xPolygon#265 from 0xPolygon/km/platform-improvements
Platform improvements
2 parents dab67ae + fc9734f commit 765c5f8

File tree

5 files changed

+45
-106
lines changed

5 files changed

+45
-106
lines changed

README.md

Lines changed: 36 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,44 @@
11
# Polygon Knowledge Layer
22

3-
Welcome to the Polygon Knowledge Layer! This documentation is built using [the Material theme for MkDocs](https://squidfunk.github.io/mkdocs-material/). Our goal is to establish a high-quality, curated, and comprehensive "source of truth" for technical knowledge surrounding Polygon's main technology. This includes detailed sections on:
3+
Welcome to the Polygon Knowledge Layer.
4+
5+
These docs use [the Material theme for MkDocs](https://squidfunk.github.io/mkdocs-material/). Our goal is to establish a high-quality, curated, and comprehensive "source of truth" for Polygon's technology.
6+
7+
This includes sections on:
48

59
- Polygon CDK
610
- Polygon zkEVM
711
- Polygon PoS
812
- Polygon Miden
9-
- Dev Tools
13+
- Developer tools
14+
15+
## Run locally
16+
17+
### Prerequisites
18+
19+
1. [Python 3.12](https://www.python.org/downloads/).
20+
2. [`virtualenv`](https://pypi.org/project/virtualenv/): Install using `pip3 install virtualenv`.
21+
22+
### Setup
23+
24+
1. Clone the repository.
25+
2. `cd` to the root.
26+
3. Run the `run.sh` script. You may need to make the script executable: `chmod +x run.sh`
27+
28+
```sh
29+
./run.sh
30+
```
31+
32+
The site comes up at http://127.0.0.1:8000/
33+
34+
### Docker
1035

11-
In addition, we include top-level sections for Tools and Tutorials to support developers in their journey with Polygon technology.
36+
If you prefer Docker, you can build and run the site using the following commands:
37+
38+
```sh
39+
docker build -t polygon-docs .
40+
docker compose up
41+
```
1242

1343
## Contributing
1444

@@ -34,58 +64,12 @@ In addition, we include top-level sections for Tools and Tutorials to support de
3464
- **Engage with the community**: Participate in discussions and provide feedback on other contributions.
3565
- **Stay consistent**: Ensure your contributions are coherent with the rest of the documentation and do not overlap or contradict existing content.
3666

37-
38-
## Running locally
39-
40-
### Prerequisites
41-
42-
Before running the site locally, you need to have the following installed:
43-
44-
1. [Python 3](https://www.python.org/downloads/).
45-
2. [`virtualenv`](https://pypi.org/project/virtualenv/): Install using `pip3 install virtualenv`.
46-
47-
### Setup
48-
49-
1. **Clone repository**: Clone the Polygon Knowledge Layer repository to your local machine.
50-
2. **Create a virtual environment**: Run `virtualenv venv; source venv/bin/activate` in the root directory.
51-
3. **Install dependencies**: Install required Python packages with `pip3 install -r requirements.txt`.
52-
53-
### Running the website
54-
55-
Before running the website, you'll need to first load the Python virtual environment in your current shell. To do this, type the following (depending on your shell):
56-
57-
- **Bash**, **zsh** (most common): `virtualenv venv; source venv/bin/activate`
58-
- **Fish**: `virtualenv venv; source venv/bin/activate.fish`
59-
- **Nu**: `virtualenv venv; source venv/bin/activate.nu`
60-
61-
You only need to do the above once per shell session. Then, pick one of the following:
62-
63-
1. **MkDocs in strict mode**: Use `mkdocs serve --strict` for a production-like environment.
64-
2. **MkDocs in normal mode**: Use `mkdocs serve` for a less strict, more forgiving environment, suitable for debugging.
65-
66-
### Docker alternative
67-
68-
If you prefer Docker, you can build and run the site using the following commands:
69-
70-
```sh
71-
docker build -t polygon-docs .
72-
docker compose up
73-
```
74-
75-
## Automated deployments
76-
77-
This repository uses GitHub Actions to automate some deployments from certain branches, which is useful for testing:
78-
79-
- **`main`**: Staging branch. Changes are deployed per-commit to https://docs-staging.polygon.technology.
80-
- **`dev`**: Experimental branch. Updates with `main` every 24 hours. Changes are deployed per-commit to https://docs-dev.polygon.technology.
81-
82-
Whenever we are happy with `main`, a trigger can be manually done through GitHub Actions which deploys staging to production at https://docs.polygon.technology.
83-
8467
## Contact and support
8568

86-
For any queries or support, please open a ticket at https://support.polygon.technology/support/home.
69+
- For docs issues (technical or language) open an issue here.
70+
- For technical issues with the software, either raise an issue here and we will follow up, or check https://support.polygon.technology/support/home.
8771

88-
## Current Technical Knowledge Documentation (TKD) team members
72+
## The team
8973

9074
- Anthony Matlala (@EmpieichO)
9175
- Katharine Murphy (@kmurphypolygon)

docs/cdk/architecture/cdk-zkevm-option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Polygon zkEVM achieves this by utilizing several actors. The diagram below depic
1515
Here is an outline of the most prominent rollup components:
1616

1717
- The **users**, who connect to the zkEVM network by means of an RPC node (e.g., Infura or Alchemy), submit their transactions to a database called the pool DB.
18-
- The **Pool DB** is the storage for transactions submitted by Users. These are kept in the pool waiting to be put in a batch by the Sequencer.
18+
- The **pool DB** is the storage for transactions submitted by users. These are kept in the pool waiting to be put in a batch by the sequencer.
1919
- The **sequencer** is a node responsible for fetching transactions from the pool DB, checking if the transactions are valid, then putting valid ones into a batch. The sequencer submits all batches to the L1 and then sequences the batches. This process proposes the sequence of batches to be included in the L1 state.
2020
- The **state DB** is a database for permanently storing state data (but not the Merkle trees).
2121
- The **synchronizer** is the component that updates the state DB by fetching data from Ethereum through the Etherman.

docs/cdk/architecture/dac.md

Lines changed: 0 additions & 36 deletions
This file was deleted.

mkdocs.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ theme:
3333
- search.suggest
3434
- search.highlight
3535
- search.share
36-
# - navigation.instant
36+
- navigation.instant
3737
- navigation.instant.progress
3838
- navigation.tracking
3939
- navigation.integration
@@ -305,8 +305,6 @@ nav:
305305
- Topup: pos/architecture/heimdall/topup.md
306306
- Chain management: pos/architecture/heimdall/chain-management.md
307307
- Governance: pos/architecture/heimdall/governance.md
308-
#- Specification:
309-
# - Specification: pos/spec/index.md
310308
- Reference:
311309
- Contracts:
312310
- Genesis contracts: pos/reference/contracts/genesis-contracts.md
@@ -607,20 +605,6 @@ extra:
607605
analytics:
608606
provider: custom
609607
property: google
610-
# feedback: # feedback form only works when Google Analytics is set up and working
611-
# title: Was this page helpful?
612-
# ratings:
613-
# - icon: fontawesome/regular/face-grin-stars
614-
# name: This page was helpful
615-
# data: 1
616-
# note: >-
617-
# Thanks for your feedback!
618-
# - icon: fontawesome/regular/face-grimace
619-
# name: This page could be improved
620-
# data: 0
621-
# note: >-
622-
# Thanks for your feedback! Help us improve this page by
623-
# using our <a href="..." target="_blank" rel="noopener">feedback form</a>.
624608
social:
625609
- icon: fontawesome/solid/circle-question
626610
link: https://support.polygon.technology/support/solutions

run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
virtualenv venv
5+
source venv/bin/activate
6+
pip3 install -r requirements.txt
7+
mkdocs serve --strict

0 commit comments

Comments
 (0)