Skip to content

Commit

Permalink
refactor: re-structure the outline and i18n (#3)
Browse files Browse the repository at this point in the history
signed-off-by: rrrro <[email protected]>
  • Loading branch information
really-need-anonymous authored Dec 29, 2024
1 parent f29d984 commit 3650d79
Show file tree
Hide file tree
Showing 225 changed files with 5,096 additions and 1,396 deletions.
10 changes: 10 additions & 0 deletions .cspell-dict.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
buildable
changefreq
Dogecoin
github
hideable
IPFS
lastmod
lidao
memecoin
memecoins
Memecoins
Shiba
solana
Solana
Solflare
strikethrough
tokenomics
webp
whistleblowers
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# The propose of this workflow is to check the code before merge to main branch

name: check code style and buildable

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

permissions:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,9 @@ jobs:
- name: Install dependencies
run: bun install

- name: Set Environment Variables
run: |
echo "GOOGLE_ANALYTICS_ID=${{ secrets.GOOGLE_ANALYTICS_ID }}" >> $GITHUB_ENV
echo "GOOGLE_TAG_MANAGER_ID=${{ secrets.GOOGLE_TAG_MANAGER_ID }}" >> $GITHUB_ENV
- name: Build
env:
GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_TAG_ID }}
GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_ID }}
GOOGLE_TAG_MANAGER_ID: ${{ secrets.GOOGLE_TAG_MANAGER_ID }}
run: bun run build

Expand Down
4 changes: 2 additions & 2 deletions bun.lockb
Git LFS file not shown
11 changes: 4 additions & 7 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ const config: Config = {
favicon: ICON_PATH,
tagline: 'The wiki of $Li and snowflake foundation',

url: 'https://li-dao.github.io',
baseUrl: '/wiki/',
// TODO: this code should be commented out when the wiki is official released
// url: 'https://li-dao.wiki',
// baseUrl: '/',
url: 'https://www.li-dao.wiki',
baseUrl: '/',

// Help to simplify url
trailingSlash: false,
Expand Down Expand Up @@ -182,7 +179,7 @@ const config: Config = {
},
footer: {
style: 'dark',
copyright: `Copyright © 2024 - ${new Date().getFullYear()} $Li developer and contributor. Under CC-BY-NC-SA 4.0`,
copyright: `Copyright © 2024 - ${new Date().getFullYear()} Developer and contributor of $Li all rights reserved. Under CC-BY-NC-SA 4.0`,
// links: [],
},
prism: {
Expand All @@ -197,7 +194,7 @@ const config: Config = {
{
path: 'wiki/',
sidebarPath: 'src/sidebars.ts',
sidebarCollapsed: false,
sidebarCollapsed: true,
sidebarCollapsible: true,
include: ['**/*.{md,mdx}'],
exclude: ['template.md'],
Expand Down
2 changes: 1 addition & 1 deletion i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
},
"theme.tags.tagsPageLink": {
"description": "The label of the link targeting the tag list page",
"message": "View All Tags"
"message": "View all tags"
},
"theme.tags.tagsPageTitle": {
"description": "The title of the tag list page",
Expand Down
72 changes: 54 additions & 18 deletions i18n/en/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,63 @@
{
"sidebar.wiki.category.区块链基础知识": {
"description": "The label for category 区块链基础知识 in sidebar wiki",
"message": "Blockchain Fundamentals"
"sidebar.wiki.category.⚖️ 9. Legal & Policy": {
"description": "The label for category ⚖️ 9. Legal & Policy in sidebar wiki",
"message": "⚖️ 9. Legal & Policy"
},
"sidebar.wiki.category.如何购买 $Li": {
"description": "The label for category 如何购买 $Li in sidebar wiki",
"message": "How to Buy $Li"
"sidebar.wiki.category.⚡ 4.3. Solana": {
"description": "The label for category ⚡ 4.3. Solana in sidebar wiki",
"message": "⚡ 4.3. Solana"
},
"sidebar.wiki.category.新闻自由": {
"description": "The label for category 新闻自由 in sidebar wiki",
"message": "Freedom of Press"
"sidebar.wiki.category.❓ 8. Support & FAQ": {
"description": "The label for category ❓ 8. Support & FAQ in sidebar wiki",
"message": "❓ 8. Support & FAQ"
},
"sidebar.wiki.category.虚拟货币 $Li": {
"description": "The label for category 虚拟货币 $Li in sidebar wiki",
"message": "Virtual Currency $Li"
"sidebar.wiki.category.👥 6. Community": {
"description": "The label for category 👥 6. Community in sidebar wiki",
"message": "👥 6. Community"
},
"sidebar.wiki.category.雪花基金会": {
"description": "The label for category 雪花基金会 in sidebar wiki",
"message": "Snowflake Foundation"
"sidebar.wiki.category.💎 5.2. Tokenomics": {
"description": "The label for category 💎 5.2. Tokenomics in sidebar wiki",
"message": "💎 5.2. Tokenomics"
},
"sidebar.wiki.category.风险提示": {
"description": "The label for category 风险提示 in sidebar wiki",
"message": "Risk Warnings"
"sidebar.wiki.category.💡 4.1. Understanding Blockchain": {
"description": "The label for category 💡 4.1. Understanding Blockchain in sidebar wiki",
"message": "💡 4.1. Understanding Blockchain"
},
"sidebar.wiki.category.🔄 5.1. Advanced Concepts": {
"description": "The label for category 🔄 5.1. Advanced Concepts in sidebar wiki",
"message": "🔄 5.1. Advanced Concepts"
},
"sidebar.wiki.category.🔗 1. Introduction": {
"description": "The label for category 🔗 1. Introduction in sidebar wiki",
"message": "🔗 1. Introduction"
},
"sidebar.wiki.category.🔗 2. Free Speech": {
"description": "The label for category 🔗 2. Free Speech in sidebar wiki",
"message": "🔗 2. Free Speech"
},
"sidebar.wiki.category.🔰 4. Blockchain Basics": {
"description": "The label for category 🔰 4. Blockchain Basics in sidebar wiki",
"message": "🔰 4. Blockchain Basics"
},
"sidebar.wiki.category.🔰 5. Advanced Blockchain": {
"description": "The label for category 🔰 5. Advanced Blockchain in sidebar wiki",
"message": "🔰 5. Advanced Blockchain"
},
"sidebar.wiki.category.🚀 3. Getting Started": {
"description": "The label for category 🚀 3. Getting Started in sidebar wiki",
"message": "🚀 3. Getting Started"
},
"sidebar.wiki.category.🛡️ 7. Safety": {
"description": "The label for category 🛡️ 7. Safety in sidebar wiki",
"message": "🛡️ 7. Safety"
},
"sidebar.wiki.category.🪙 4.2. Memecoins": {
"description": "The label for category 🪙 4.2. Memecoins in sidebar wiki",
"message": "🪙 4.2. Memecoins"
},
"sidebar.wiki.doc.Risk Disclaimer": {
"description": "The label for the doc item Risk Disclaimer in sidebar wiki, linking to the doc risk-disclaimer",
"message": "Risk Disclaimer"
},
"version.label": {
"description": "The label for version current",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: Bridging & Cross-Chain Swaps
hide_title: false
hide_table_of_contents: false
keywords:
- Bridge
- Cross-chain
- Interoperability
- Privacy
description: Understanding blockchain bridges and cross-chain functionality
sidebar_label: Bridging
draft: false
last_update:
date: 2024-12-30
author: Developer and Contributors of $Li
---

:::warning
This page is under construction, all the information is not final.
:::

:::info
In this page, we will explore:

1. What are blockchain bridges
2. Possibilities for $Li to interact with:
- Ethereum
- BNB Chain
- Other networks
3. Cross-chain privacy solutions
4. Security considerations for users in restricted regions

:::
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: Proof of History (PoH)
hide_title: false
hide_table_of_contents: false
keywords:
- Proof of History
- PoH
- Solana
- Blockchain
description: Deep dive into Solana's core innovation for scalability and speed
sidebar_label: Proof of History
draft: false
last_update:
date: 2024-12-30
author: Developer and Contributors of $Li
---

:::warning
This page is under construction, all the information is not final.
:::

:::info
In this page, we will explore:

1. What is Proof of History (PoH)
2. How PoH enables Solana's high performance
3. Technical implementation details
4. Benefits for censorship resistance
5. Comparison with other consensus mechanisms

:::
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: Smart Contracts
hide_title: false
hide_table_of_contents: false
keywords:
- Smart Contracts
- Solana
- Programs
- Blockchain
description: Understanding smart contracts and their role in $Li ecosystem
sidebar_label: Smart Contracts
draft: false
last_update:
date: 2024-12-30
author: Developer and Contributors of $Li
---

:::warning
This page is under construction, all the information is not final.
:::

:::info
In this page, we will explore:

1. What are smart contracts
2. How $Li uses smart contracts for:
- Governance
- Tip jars for journalists
- Community rewards
3. Technical implementation on Solana
4. Security considerations

:::
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Distribution & Governance
hide_title: false
hide_table_of_contents: false
keywords:
- Tokenomics
- Distribution
- Governance
- Community
description: Understanding $Li token distribution and governance mechanisms
sidebar_label: Distribution
draft: false
last_update:
date: 2024-12-30
author: Developer and Contributors of $Li
---

:::warning
This page is under construction, all the information is not final.
:::

:::info
In this page, we will cover:

1. Token distribution:
2. Community involvement in allocation decisions
3. Governance mechanisms
4. Long-term distribution strategy

:::
Loading

0 comments on commit 3650d79

Please sign in to comment.