diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml
index c12c1e3a6..5c87ab0c5 100644
--- a/.github/workflows/update.yml
+++ b/.github/workflows/update.yml
@@ -34,6 +34,7 @@ jobs:
- name: Start export latest wiki pages
env:
API_BASE_URL: https://m.lbkrs.com
+ API_SECRETS_TOKEN: ${{ secrets.API_SECRETS_TOKEN }}
run: |
bun install
cd scripts/wiki && bun run sync-wikis.ts
diff --git a/bun.lockb b/bun.lockb
index 3a20f9eb7..afc136569 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/docs/learn/capex-200000.mdx b/docs/learn/capex-200000.mdx
index 4d6feb8c5..21444b16d 100644
--- a/docs/learn/capex-200000.mdx
+++ b/docs/learn/capex-200000.mdx
@@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta'
# Capex
-
Capital Expenditure (Capex) refers to the funds a company spends on acquiring, maintaining, or improving its fixed assets, such as buildings, machinery, equipment, or technology. These expenditures are considered investments in the long-term growth and productive capacity of the business.
Capex is typically categorized as a capital budget item, which is a significant purchase that contributes to the company's value over time. It is distinct from operational expenses, which cover the ongoing costs of running a business, such as salaries, rent, and utilities. Capex is often used to expand a company's capabilities, modernize its facilities, or increase its production capacity.
diff --git a/docs/learn/fomc-meeting-106928.mdx b/docs/learn/fomc-meeting-106928.mdx index bf217a00c..591a9bcd0 100644 --- a/docs/learn/fomc-meeting-106928.mdx +++ b/docs/learn/fomc-meeting-106928.mdx @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta' # FOMC Meeting -The FOMC meeting is the abbreviation of the Federal Open Market Committee, which is the decision-making body of the Federal Reserve System responsible for formulating and implementing monetary policy. The FOMC meeting is a regular meeting held by committee members to discuss and decide on interest rate policy, money supply, and other matters related to monetary policy. The decisions made at FOMC meetings have a significant impact on global financial markets and the economy, and therefore attract attention from various sectors.
diff --git a/docs/learn/opex-200001.mdx b/docs/learn/opex-200001.mdx index 1a9d563d1..642aed4ac 100644 --- a/docs/learn/opex-200001.mdx +++ b/docs/learn/opex-200001.mdx @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta' # Opex -Operating Expenditure (Opex) refers to the ongoing costs incurred by a business in the regular course of its operations. These costs are necessary for the day-to-day functioning of the company and include expenses such as salaries, rent, utilities, office supplies, marketing, and routine maintenance.
Unlike capital expenditures (Capex), which are investments in long-term assets that are expected to generate future benefits and are typically depreciated over time, Opex represents the recurring expenses that must be paid to keep the business running. Opex is often categorized as a recurring cost and is essential for the short-term operations of a company. It is a key component in financial planning and budgeting, and it helps businesses manage their cash flow and profitability.
diff --git a/docusaurus.config.ts b/docusaurus.config.ts index b415e3f62..7df3f8c83 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -5,7 +5,6 @@ const darkCodeTheme = require("prism-react-renderer/themes/vsDark"); import type { Config } from "@docusaurus/types"; import type * as Preset from "@docusaurus/preset-classic"; import process from "node:process"; -import { baseURLPrefix } from "./src/constant"; const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const openapiDomain = "https://open.longportapp.com"; @@ -19,12 +18,12 @@ const ossEnv = isDev ? "/" : proxy; const targetPortalPath = proxy === "canary" ? "https://m.longbridge.xyz" : "https://m.lbkrs.com"; const localAPIProxyPath = "/dev-proxy"; const apiProxyUrl = `${isDev ? localAPIProxyPath : targetPortalPath}/api/forward`; -const portAIProxyUrl = isDev ? 'http://localhost:4040/dev-proxy' : undefined; +const portAIProxyUrl = isDev ? "http://localhost:4040/dev-proxy" : undefined; const config: Config = { - title: "LongPort wiki", + title: "LongPort", url: "https://longportapp.com", - baseUrl: baseURLPrefix, + baseUrl: "/", organizationName: "longportapp", projectName: "wiki-docs", baseUrlIssueBanner: false, @@ -96,8 +95,6 @@ const config: Config = { }; } ], - - presets: [ [ "classic", @@ -117,8 +114,10 @@ const config: Config = { return await items.map((item) => { return item.url = item.url .replace("zh-CN/zh-CN", "zh-CN") + .replace("zh-CN/en/learn", "zh-CN/learn") .replace("en/en", "en") - .replace("zh-HK/zh-HK", "zh-HK"); + .replace("zh-HK/zh-HK", "zh-HK") + .replace("zh-HK/en/learn", "zh-HK/learn"); }); } } @@ -126,7 +125,6 @@ const config: Config = { } satisfies Preset.Options ] ], - themeConfig: /** @type {import("@docusaurus/preset-classic").ThemeConfig} */ { @@ -157,9 +155,7 @@ const config: Config = { { to: openapiDomain, position: "left", - target: "_self", - label: "开发者认证", - activeBaseRegex: "^/$" + label: "开发者认证" }, { to: communityDomain, diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/capex-200000.mdx b/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/capex-200000.mdx index 2900d05fe..42fc09c13 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/capex-200000.mdx +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/capex-200000.mdx @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta' # 资本支出 -资本支出(Capital expenditure 或 CapEx)在会计学上是指为了获得固定资产,或为了延长固定资产耐用年限而流出的费用。 在会计记账时,资本支出并不是在支出的当年全部计入费用,而是按照折旧的方式计入每一年的费用。
diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/fomc-meeting-106928.mdx b/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/fomc-meeting-106928.mdx index bc4db6181..3838e1c25 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/fomc-meeting-106928.mdx +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/fomc-meeting-106928.mdx @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta' # 联邦公开市场委员会会议 -FOMC 会议是美联储货币政策委员会(Federal Open Market Committee)的简称。FOMC 是美国联邦储备系统的决策机构,负责制定和执行货币政策。FOMC 会议是委员会成员定期举行的会议,讨论和决定利率政策、货币供应量和其他与货币政策相关的事项。FOMC 会议的决策对于全球金融市场和经济都具有重要影响,因此受到各界关注。
diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/opex-200001.mdx b/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/opex-200001.mdx index 2541d5c79..a55963bfa 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/opex-200001.mdx +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/learn/opex-200001.mdx @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta' # 运营支出 -运营支出(Operating Expenditure 或 Opex)它指的是公司在日常运营中产生的费用,这些费用是公司为了维持其正常运作而必须支付的。Opex 包括了员工工资、租金、水电费、办公用品、营销费用、日常维修费用等。
与 Capex 不同,Opex 通常不包括购买或改善固定资产的支出,因为这些支出被视为长期投资,归类为资本支出。简单来说,Opex 可以看作是公司为了保持业务运转而必须支付的短期费用,而 Capex 则是公司为了长期发展而进行的资本投资。
+运营支出(Operating Expenditure 或 Opex)它指的是公司在日常运营中产生的费用,这些费用是公司为了维持其正常运作而必须支付的。Opex 包括了员工工资、租金、水电费、办公用品、营销费用、日常维修费用等。
与 Capex 不同,Opex 通常不包括购买或改善固定资产的支出,因为这些支出被视为长期投资,归类为资本支出。简单来说, Opex 可以看作是公司为了保持业务运转而必须支付的短期费用,而 Capex 则是公司为了长期发展而进行的资本投资。
diff --git a/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/capex-200000.mdx b/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/capex-200000.mdx index 5fa1df9e4..ea8cc3879 100644 --- a/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/capex-200000.mdx +++ b/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/capex-200000.mdx @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta' # 資本支出 -資本支出(Capital expenditure 或 CapEx)在會計學上是指為了獲得固定資產,或為了延長固定資產耐用年限而流出的費用。 在會計記賬時,資本支出並不是在支出的當年全部計入費用,而是按照折舊的方式計入每一年的費用。
diff --git a/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/fomc-meeting-106928.mdx b/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/fomc-meeting-106928.mdx index 211eeb0cf..47f7c10e4 100644 --- a/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/fomc-meeting-106928.mdx +++ b/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/fomc-meeting-106928.mdx @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta' # 聯邦公開市場委員會會議 -FOMC 會議是美聯儲貨幣政策委員會(Federal Open Market Committee)的簡稱。FOMC 是美國聯邦儲備系統的決策機構,負責制定和執行貨幣政策。FOMC 會議是委員會成員定期舉行的會議,討論和決定利率政策、貨幣供應量和其他與貨幣政策相關的事項。FOMC 會議的決策對於全球金融市場和經濟都具有重要影響,因此受到各界關注。
diff --git a/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/opex-200001.mdx b/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/opex-200001.mdx index 9de7f71cb..042ab722c 100644 --- a/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/opex-200001.mdx +++ b/i18n/zh-HK/docusaurus-plugin-content-docs/current/learn/opex-200001.mdx @@ -9,7 +9,7 @@ import {ArticleMeta} from '@site/src/components/article-meta' # 運營支出 -運營支出(Operating Expenditure 或 Opex)它指的是公司在日常運營中產生的費用,這些費用是公司為了維持其正常運作而必須支付的。Opex 包括了員工工資、租金、水電費、辦公用品、營銷費用、日常維修費用等。
與 Capex 不同,Opex 通常不包括購買或改善固定資產的支出,因為這些支出被視為長期投資,歸類為資本支出。簡單來説,Opex 可以看作是公司為了保持業務運轉而必須支付的短期費用,而 Capex 則是公司為了長期發展而進行的資本投資。
+運營支出(Operating Expenditure 或 Opex)它指的是公司在日常運營中產生的費用,這些費用是公司為了維持其正常運作而必須支付的。Opex 包括了員工工資、租金、水電費、辦公用品、營銷費用、日常維修費用等。
與 Capex 不同,Opex 通常不包括購買或改善固定資產的支出,因為這些支出被視為長期投資,歸類為資本支出。簡單來説, Opex 可以看作是公司為了保持業務運轉而必須支付的短期費用,而 Capex 則是公司為了長期發展而進行的資本投資。
diff --git a/last_updated_at.txt b/last_updated_at.txt index 456008e50..525b2c3e1 100644 --- a/last_updated_at.txt +++ b/last_updated_at.txt @@ -1 +1 @@ -1693213611 \ No newline at end of file +1718780160 \ No newline at end of file diff --git a/scripts/wiki/sync-wikis.ts b/scripts/wiki/sync-wikis.ts index 00e6dd50b..1b2d0a3c5 100644 --- a/scripts/wiki/sync-wikis.ts +++ b/scripts/wiki/sync-wikis.ts @@ -60,7 +60,7 @@ export async function updateLatestWiki(limit = 100) { console.log("--> after uniq wikis:", wikis.length); const theLatestWiki = wikis[0]; if (theLatestWiki) { - fetchLastUpdatedValue(theLatestWiki.content_updated_at); + await fetchLastUpdatedValue(theLatestWiki.content_updated_at); } wikis.forEach(async (rawWiki) => { diff --git a/scripts/wiki/utils.ts b/scripts/wiki/utils.ts index 1656f314d..d77e23d84 100644 --- a/scripts/wiki/utils.ts +++ b/scripts/wiki/utils.ts @@ -3,7 +3,7 @@ import dayjs from "dayjs"; const fs = require("fs"); const path = require("path"); -const projectRoot = path.resolve(__dirname, "..", "..", ".."); +const projectRoot = path.resolve(__dirname, "..", ".."); const forceRefresh = process.env.FORCE_UPDATE === "true"; export async function fetchLastUpdatedValue(content_updated_at = 0) { diff --git a/src/constant.ts b/src/constant.ts deleted file mode 100644 index 71de4aee5..000000000 --- a/src/constant.ts +++ /dev/null @@ -1 +0,0 @@ -export const baseURLPrefix = "/";