Skip to content

Commit fe457e9

Browse files
authored
fix(src): add json suffix, update docusaurus config (#1090)
2 parents 7c7bfbe + abf67cb commit fe457e9

File tree

11 files changed

+896
-506
lines changed

11 files changed

+896
-506
lines changed

automations/feed_table_generator.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ def get(cls, name: str) -> "NetworkConfig":
5656
FTSO_RISK_PATH: Final[Path] = Path("ftso_risk.json")
5757
REPO_ROOT: Final[Path] = Path(__file__).resolve().parents[1]
5858
FTSO_FEEDS_PATH: Final[Path] = (
59-
REPO_ROOT / "src" / "features" / "DataTables" / "FtsoFeeds" / "ftso_feeds.json"
59+
REPO_ROOT
60+
/ "src"
61+
/ "features"
62+
/ "DataTables"
63+
/ "FtsoFeeds"
64+
/ "ftso_feeds.generated.json"
6065
)
6166

6267
HARD_CODED_FEEDS: Final[dict[str, dict[str, str]]] = {

automations/solidity_reference_table_generator.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ def get(cls, name: str) -> "NetworkConfig":
5151
# Configuration
5252
REPO_ROOT: Final[Path] = Path(__file__).resolve().parents[1]
5353
OUTPUT_PATH: Final[Path] = (
54-
REPO_ROOT / "src" / "features" / "DataTables" / "SolidityReference" / "solidity_reference.json"
54+
REPO_ROOT
55+
/ "src"
56+
/ "features"
57+
/ "DataTables"
58+
/ "SolidityReference"
59+
/ "solidity_reference.generated.json"
5560
)
5661

5762
REGISTRY_ABI: Final[list[dict[str, Any]]] = [

automations/uv.lock

Lines changed: 860 additions & 487 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ftso/scaling/2-getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ The DA Layer provides API endpoints for querying offchain data from Flare protoc
6262
| Flare Testnet Coston2 | `https://ctn2-data-availability.flare.network/` |
6363
| Songbird Testnet Coston | `https://ctn-data-availability.flare.network/` |
6464

65-
All networks have the same API structure. For a full list of endpoints see [Data Availability API Reference](/fdc/reference/data-availability-api).
65+
All networks have the same API structure. For a full list of endpoints see [Data Availability API Reference](/ftso/scaling/solidity-reference/data-availability-api).
6666

6767
## Fetching anchor feed data
6868

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
sidebar_label: Data Availability API
3+
hide_title: true
4+
description: OpenAPI specification for Data Availability API.
5+
sidebar_position: 1
6+
---
7+
8+
import OpenApiDoc from "@site/src/components/OpenApiDoc";
9+
10+
<OpenApiDoc url="openapi/data-availability-api.yaml" />

docusaurus.config.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,11 @@ const config: Config = {
99
tagline: "Official documentation for Flare.",
1010
favicon: "/img/favicon.ico",
1111

12-
// Set the production url of your site here
1312
url: "https://dev.flare.network",
14-
// Set the /<baseUrl>/ pathname under which your site is served
15-
// For GitHub pages deployment, it is often '/<projectName>/'
1613
baseUrl: "/",
1714

18-
// GitHub pages deployment config.
19-
// If you aren't using GitHub pages, you don't need these.
20-
organizationName: "flare-foundation", // Usually your GitHub org/user name.
21-
projectName: "developer-hub", // Usually your repo name.
15+
organizationName: "flare-foundation",
16+
projectName: "developer-hub",
2217

2318
onBrokenAnchors: "throw",
2419
onDuplicateRoutes: "throw",
@@ -31,12 +26,14 @@ const config: Config = {
3126
},
3227
},
3328

34-
// Even if you don't use internationalization, you can use this field to set
35-
// useful metadata like html lang. For example, if your site is Chinese, you
36-
// may want to replace "en" with "zh-Hans".
29+
trailingSlash: false,
30+
3731
i18n: {
3832
defaultLocale: "en",
3933
locales: ["en"],
34+
localeConfigs: {
35+
en: { htmlLang: "en" },
36+
},
4037
},
4138

4239
// Experimental features in preparation for Docusaurus v4 upgrade
@@ -354,7 +351,7 @@ const config: Config = {
354351
],
355352
],
356353
scripts: [
357-
// Optimized cookie script loading - defer until after page load
354+
// Defer cookie script loading until after page load
358355
{
359356
src: "/js/cookie-loader.js",
360357
defer: true,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
"not op_mini all"
5959
],
6060
"development": [
61-
"last 3 chrome version",
62-
"last 3 firefox version",
63-
"last 5 safari version"
61+
"last 1 chrome version",
62+
"last 1 firefox version",
63+
"last 1 safari version"
6464
]
6565
},
6666
"engines": {

src/features/DataTables/FtsoFeeds/ftso_feeds.json renamed to src/features/DataTables/FtsoFeeds/ftso_feeds.generated.json

File renamed without changes.

src/features/DataTables/FtsoFeeds/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import Tippy from "@tippyjs/react";
33
import "tippy.js/dist/tippy.css";
44
import CopyButton from "@site/src/components/CopyButton";
5-
import tableData from "./ftso_feeds.json";
5+
import tableData from "./ftso_feeds.generated.json";
66
import Link from "@docusaurus/Link";
77
import styles from "../tableStyles.module.css";
88

src/features/DataTables/SolidityReference/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useMemo } from "react";
22
import Link from "@docusaurus/Link";
3-
import tableDataRaw from "./solidity_reference.json";
3+
import tableDataRaw from "./solidity_reference.generated.json";
44
import styles from "../tableStyles.module.css";
55

66
type ContractData = Readonly<{

0 commit comments

Comments
 (0)