- If you are running this on a remote server.
-
- first use ssh tunnel: ssh -N -L localhost:5210:localhost:5210 USERNAME@IP_ADDRESS -i SERVER_KEY_FILE
-
-
-
-
- 4. Config the Subnet options per your requirement.
- 
-
- 5. follow the generated instructions in `commands.txt`. In general, the steps are:
- - start Subnet Nodes
- - deploy CSC
- - deploy XDC-Zero (optional)
- - start Subnet Services (relayer, stats-server, frontend)
-
- 6. Once successfully deployed, you can check out [UI usage guide](../usage/ui/1_homepage.md)
-
-## Removing Subnet
-
- ### Shutdown Subnet
- Under `generated` directory
- ```
- docker compose --env-file docker-compose.env --profile services down
- docker compose --env-file docker-compose.env --profile machine1 down
- ```
-
- ### Deleting Subnet
- Remove `xdcchain*`, `bootnodes`, and `stats-service` directories
- Warning: this cannot be undone
- ```
- rm -rf xdcchain* bootnodes stats-service
- ```
diff --git a/docs/deployment/2_configs_explanation.md b/docs/deployment/2_configs_explanation.md
deleted file mode 100644
index b9dd9c6..0000000
--- a/docs/deployment/2_configs_explanation.md
+++ /dev/null
@@ -1,94 +0,0 @@
----
-sidebar_label: "2. Configs Explanation"
-sidebar_position: 2
----
-
-# Configs Explanation
-
-## Files under 'generated' directory
-After the generator has succesfully run, all generated files will be under 'generated' directory. These files can be edited if you would like to further customize your subnet. Below is a description of each generated file and how it is used.
-
-- commands.txt - The generated instructions to launch the subnet.
-- common.env - The config parameters for Subnet services.
-- contract_deploy.env - The config file used for CSC deployment.
-- subnet*.env - The config parameters for each Subnet node.
-- genesis.json - The 'block 0' of the Subnet. Initializes the blockchain for subnet nodes.
-- genesis_input.yml - An intermediate file used in config generation.
-- keys.json - Generated keypairs or custom keypairs by user input. Please be mindful to keep the credentials secure.
-- docker-compose.yml - The main deployment file. Includes docker images versions, startup commands, network configurations.
-- docker-compose.env - The config injection path that docker uses to point to other *.env files.
-
-### common.env
-- PARENTNET_URL - RPC of the parentnet
-- SUBNET_URL - RPC of the Subnet
-- PARENTNET_WALLET - Public key of the Relayer wallet
-- PARENTNET_WALLET_PK - Private key of the Relayer wallet
-- VITE_SUBNET_URL - URL of stats server backend that is passed to your local browser
-- VITE_SUBNET_RPC - URL of the Subnet RPC that is passed to your local browser
-- CHECKPOINT_CONTRACT - Checkpoint Smart Contract address
-- STATS_SECRET - Secret used by stats server backend
-- EXTIP - Configured IP of bootnode
-- BOOTNODE_PORT - Configured port of bootnode
-
-### subnet*.env
-- INSTANCE_NAME - Subnet node name
-- PRIVATE_KEY - Subnet node private key
-- BOOTNODES - Subnet bootnode to connect and discover other Subnet nodes
-- NETWORK_ID - Subnet network ID
-- SYNC_MODE - Node operation mode (full or archive)
-- RPC_API - enabled api's scheme such as eth, xdpos, debug, net
-- STATS_SERVICE_ADDRESS - Stats server backend URL
-- STATS_SECRET - Secret to authenticate with Stats server
-- PORT - Subnet node port for communication with other Subnet nodes
-- RPCPORT - Subnet node port for accepting RPC calls
-- WSPORT - Subnet node port for accepting Websocket connections
-- LOG_LEVEL - Desired logging level. 2=Warn, 3=Info, 4=Debug.
-
-
-
-## Subnet Ports
-1. Subnet Nodes - 3 ports are used per each subnet, RPC port, WS port, and Peering port. The port number is incremented by 1 for the next subnet node. For example subnet1's RPC is 8545, subnet2's RPC will be 8546 and so on.
- - RPC PORT - 8545, 8546, 8547, ... This is the API port, for outside chain communication to issue transaction or query chaindata.
- - WS PORT - 9555, 9556, 9557, ... This is not used currently.
- - Peering port - 20303, 20304, 20305, ... This is used for subnet nodes and bootnode peering and communication.
- - Subnet ports config can be changed in `subnetX.env` for each individual subnet.
-2. Bootnode - port 20301
- - Bootnode port can be changed at `BOOTNODE_PORT` under `common.env`. Also in each `subnetX.env`, `BOOTNODES` port has to be changed.
-3. Stats Server (UI backend) - port 5213.
-4. UI Frontend - port 5214.
-5. Relayer UI - port 5215.
-6. Faucet Server - port 5211
-7. Generator UI - port 5210.
-
-
-
-## Updating Configs
-### Upgrading Subnet Deployment
-#### Create a Subnet backup
-1. [Shutdown the subnet](./1_launch_subnet.md#shutdown-subnet )
-
-2. Make a copy of `xdcchain` directory
-
-#### Update Subnet Versions
-1. Go to `docker-compose.yml` under `generated` directory.
-2. Change the docker image tag of your desired component(s).
-3. Run:
-```
- docker compose --env-file docker-compose.env --profile machine1 up -d
- docker compose --env-file docker-compose.env --profile services up -d
-```
-
-Using `latest` tag is not recommended since not all components version are not guaranteed to be compatible.
-
-### Updating Services Configs
-1. Shut down subnet services
-```
-docker compose --env-file docker-compose.env --profile services down
-```
-2. Update configuration (usually ENVs inside common.env file)
-
-3. Start subnet services
-```
-docker compose --env-file docker-compose.env --profile services up -d
-```
-
diff --git a/docs/deployment/3_troubleshooting.md b/docs/deployment/3_troubleshooting.md
deleted file mode 100644
index 503a9dd..0000000
--- a/docs/deployment/3_troubleshooting.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-sidebar_label: "3. Common Issues and Troubleshooting"
-sidebar_position: 3
----
-
-# Common Issues and Troubleshooting
-
-## Common Issues
- - Subnet blocks are not being mined.
- 1. First confirm that the Subnet nodes are able to communicate with each other through the network layer. Run the check peer script `generated/scripts/check-peers.sh` the number of peers should be one less than number of subnet nodes. For example, if there are 3 Subnet nodes in total, each node should have 2 peers.
-
- 2. If the nodes are peering but still not mining, it could be a low memory issue. In Docker configs you can try to increase memory or swap. Then, in case of fresh Subnet, [delete data and start the nodes again](./1_launch_subnet.md/#deleting-subnet). 
-
- 3. Docker engine in Mac OS can be inconsistent after long-running or high-load. It could help to restart the machine and [hard reset the subnet](./1_launch_subnet.md#deleting-subnet ) to get it running.
-
- - Subnet node does not boot with error log `Fatal: Error starting protocol stack: listen unix /work/xdcchain/XDC.ipc: bind: invalid argument`
-
- This is due to the volume mount path being too long. The mounth path is your current directory (also can check with `pwd` command). Please move the `generated` folder to a shorter path and try again.
-
- - Docker image startup fails with `SIGKILL` or `Error code: 137` found in logs. (Issue found in Frontend image)
-
- This error occurs because Docker ran Out Of Memory (OOM). You can increase the memory limit in [Docker settings](https://docs.docker.com/desktop/settings/mac/#:~:text=lower%20the%20number.-,Memory,-.%20By%20default%2C%20Docker)
-
-
-
-
-## Troubleshooting Scripts
- - `generated/scripts/check-mining.sh`
-
- This will check your current block in Subnet
-
- - `generated/scripts/check-peers.sh`
-
- This will check the number of peers of your Subnet node
-
-
-## Telegram Troubleshooting Support Group
- https://t.me/+jvkX6LaLEEthZWM1
\ No newline at end of file
diff --git a/docs/deployment/5_faq.md b/docs/deployment/5_faq.md
deleted file mode 100644
index 796adfb..0000000
--- a/docs/deployment/5_faq.md
+++ /dev/null
@@ -1,60 +0,0 @@
----
-sidebar_label: "4. FAQ"
-sidebar_position: 4
----
-
-# Frequently Asked Questions
-
-## Subnet Node Requirements
-
-- **How many Subnet nodes should I have?**
-
- Even one node is enough to start the Subnet blockchain! However, for better decentralized security, 3+ nodes are recommended. At least 2/3 of all nodes must be online and honest to mine blocks.
-
-## Development and Testing
-
-- **For testing, should I checkpoint the Subnet to devnet or testnet?**
-
- It's recommended to use the testnet, as the devnet will be less stable due to frequent development changes.
-
-## Managing Subnet Tokens
-
-- **Where are all the Subnet tokens, and how do I use the Subnet?**
-
- In XDC-Subnet, all initial tokens are assigned to the Grandmaster wallet (check `keys.json`). You can transfer tokens to any wallet address. For easy transfers, refer to the [Faucet](../usage/2_faucet.md) documentation.
-
-- **How can I manage Subnet tokens?**
-
- 1. Use the [Subnet Faucet](../usage/2_faucet.md) to easily transfer Subnet tokens to your users.
- 2. Use any Web3 wallet (such as Metamask or OKX wallet), add the Subnet RPC as a custom network then connect to the Subnet and transfer tokens to other addresses.
-
-- **How can I easily give out Subnet tokens to my users?**
-
- A Faucet server script is provided for you to deploy under `generated/scripts/faucet-server.sh`. Anyone with access to the faucet page can request tokens. Please refer to the [faucet page](../usage/2_faucet.md) for more details.
-
-## Security and Sensitive Files
-
-- **Which files contain sensitive data and private keys?**
-
- The following files contain sensitive information and should be stored securely:
-
- - `common.env`
- - `contract_deploy.env`
- - `keys.json`
- - `subnet*.env`
-
-## Configuration Changes
-
-- **How do I change the Relayer Wallet/Parentchain Wallet?**
-
- You can update the `common.env` file to change the Relayer key. Refer to the [service configuration documentation](./2_configs_explanation.md#updating-services-configs) for more details.
-
-## Troubleshooting
-
-- **What should I do if a function didn’t work or I encountered an unexpected bug?**
-
- For troubleshooting support, join our [Telegram Support Group](./3_troubleshooting.md#telegram-troubleshooting-support-group).
- For suggestions or requests, you can also reach out via:
-
- - [XDC Forum](https://forum.xinfin.org/)
- - [GitHub Issues](https://github.com/XinFinOrg/XDC-Subnet/issues)
diff --git a/docs/deployment/6_subnet_deployment_generator_changelog.md b/docs/deployment/6_subnet_deployment_generator_changelog.md
deleted file mode 100644
index 178389f..0000000
--- a/docs/deployment/6_subnet_deployment_generator_changelog.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-sidebar_label: "Subnet Deployment Generator Changelog"
-sidebar_position: 5
----
-
-# Subnet Deployment Generator Changelog
-
-### v1.0.0 - 2024/10/03
- - Added Configuration Generator UI
- - Added XDC-Zero configuration generation
- - Added Faucet and Faucet Server
- - Added helper scripts
- - Changed default ports of components to prevent clashing
- - Stats Server - port 5213
- - Frontend - port 5214
- - Relayer - port 5215
- - Faucet Server - port 5211
- - Generator UI - port 5210
- - Documentation update
- - added Subnet setup video walkthrough
- - added FAQ section
- - added Contact section
- - Minor bug fixes
-
-
-### v0.3.2 - 2024/08/15
- - Changed frontend default due to clashing from 5000 to 5555
-
-### v0.3.1 - 2024/07/24
- - Use testnet by default
- - Remove admin api by default
- - Added PUBLIC_IP optional config in deployment-generator
- - Bump component versions
-
-### v0.2.1 - 2024/01/09
- - New generation style, pulls script from github to run multiple docker images instead of generating from single image.
- - New Checkpoint Smart Contract (CSC) deployment image
- - Supports upgradable CSC
- - Bump components versions
- - Fix bugs
- - Code refactor, optimization
-### v0.1.6
- - Bump relayer version to support gas fee changes
-### v0.1.5
- - Added OS=mac option in 'docker.env'. This option is intended for single machine testing environment only.
-### v0.1.4
- - Added custom keys functionality
- 'docker.env' now accepts GRANDMASTER_PK and SUBNETS_PK. Where SUBNETS_PK can have multiple keys separated by a comma ','. Number of subnet keys must equal NUM_SUBNET. Keys are randomized if not provided.
- - Added RELAYER_MODE in 'docker.env', CSC deployment will select from 'full' or 'lite' smart contract, default 'full'.
- - Automate CHECKPOINT_CONTRACT copy-paste step (manual action no longer required).
- - PARENTCHAIN_WALLET is no longer required in 'docker.env', the address will be derived from PARENTCHAIN_WALLET_PK.
- - Disabled parentchain observer in docker-compose.yml, unused for now (due to long startup time).
- - Bump default subnet components stable versions
diff --git a/docs/deployment/_category_.json b/docs/deployment/_category_.json
deleted file mode 100644
index f1b5807..0000000
--- a/docs/deployment/_category_.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "label": "Deployment Guide",
- "position": 3,
- "link": {
- "type": "generated-index",
- "description": "Step-by-step guide to deploy your own XDC subnet and get it secured by XDC"
- }
-}
-
-
-
diff --git a/docs/deployment/img/docker_mem.png b/docs/deployment/img/docker_mem.png
deleted file mode 100644
index dd79007..0000000
Binary files a/docs/deployment/img/docker_mem.png and /dev/null differ
diff --git a/docs/deployment/img/ui.png b/docs/deployment/img/ui.png
deleted file mode 100644
index b1ea249..0000000
Binary files a/docs/deployment/img/ui.png and /dev/null differ
diff --git a/docs/intro.md b/docs/intro.md
index 9733299..680e821 100644
--- a/docs/intro.md
+++ b/docs/intro.md
@@ -4,4 +4,4 @@ sidebar_position: 1
---
# Welcome
-Welcome to the technical documentation site of XDC enterprise private subnet! We are continuously adding materials to it.
+This site has been deprecated. We have migrated XDC-Subnet documentation to the official XDC documentation site https://docs.xdc.network/subnet/
\ No newline at end of file
diff --git a/docs/introduction/_category_.json b/docs/introduction/_category_.json
deleted file mode 100644
index a082441..0000000
--- a/docs/introduction/_category_.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "label": "Introduction",
- "position": 1,
- "link": {
- "type": "generated-index",
- "description": "High-level Overview of XDC Subnet."
- }
-}
-
-
-
diff --git a/docs/introduction/architecture.md b/docs/introduction/architecture.md
deleted file mode 100644
index 13a8899..0000000
--- a/docs/introduction/architecture.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-sidebar_position: 2
----
-
-# Architecture
-
-
-The architecture consists of the following four main components owned by the customer:
-1. a subnet driven by the XDC2.0 consensus engine, with configurable parameters
-2. a relayer program that checkpoints subnet block headers to the XDC mainnet
-3. a smart contract in the XDC mainnet that verifies and records the checkpoints and maintain the subnet header chain
-4. an API library for the wallet, which enables additional protection of subnet transactions through extra confirmation in the XDC mainnet
-
-
\ No newline at end of file
diff --git a/docs/introduction/img/architecture.svg b/docs/introduction/img/architecture.svg
deleted file mode 100644
index db1471a..0000000
--- a/docs/introduction/img/architecture.svg
+++ /dev/null
@@ -1 +0,0 @@
-