Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Developer Portal #79

Merged
merged 21 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/verify-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Verify PR

on:
pull_request:
branches:
- main

jobs:
verify:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
node_modules/
book
.DS_Store
css/tailwind.css
10 changes: 10 additions & 0 deletions .spellcheckerdict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ De-registration
DevOps
disintermediate
DNS
dropdown
DSNP
EC2
ECC
Expand All @@ -57,6 +58,8 @@ IPFS
ipfs
JS
jsonrpc
lifecycle
[Ll]ightpaper
localhost
LockIdentifier
macOS
Expand All @@ -68,6 +71,7 @@ mempool
Merkle
MeWe
mFRQCY
[Mm]icroservice(s?)
Milli
MinimumStakingAmount
MSA(s|'s)?
Expand Down Expand Up @@ -109,11 +113,13 @@ RPC(s?)
Ryzen
scalability
scalable
SDK(s?)
[Ss]chemaI[Dd]
[Ss]chemas
Screenshots
secp256k1
SignedExtension
SIWF
SMT
SR25519
SSD
Expand Down Expand Up @@ -147,6 +153,7 @@ validator(s?)
vCPU
vs
[Ww]asm
Web2
web3
WebSocket(s?)
whitespace
Expand All @@ -166,6 +173,7 @@ trackable
Amplica
algorithmically
optionality
OpenAPI
annum
incentivize
Paseo
Expand Down Expand Up @@ -198,3 +206,5 @@ blockspace
permissionless
TBD
precalculated
unfollowing
[Ww]ebhook(s?)
1 change: 1 addition & 0 deletions .spellcheckerrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"files": [
"**/*.md",
"!STYLEGUIDE.md",
"!preprocessors/README.md",
"!LICENSE.md",
"**/.github/**/*.md"
],
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 22.11.0
40 changes: 27 additions & 13 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,18 @@ multilingual = false
src = "pages"
title = "Frequency Documentation"

[preprocessor.local]
command = "node preprocessor.mjs"
[preprocessor.button-links]
command = "node preprocessors/button-links.mjs"

[preprocessor.svg-embed]
command = "node preprocessors/svg-embed.mjs"

[preprocessor.title-image]
command = "node preprocessors/title-image.mjs"

[preprocessor.tailwind]
renderers = ["html"]
command = 'node preprocessors/noop-npx.mjs "npx -y tailwindcss -i ./theme/css/tailwind.css -o ./css/tailwind.css"'

[output.html]
no-section-label = true
Expand All @@ -16,23 +26,27 @@ git-repository-url = "https://github.com/frequency-chain/docs"
edit-url-template = "https://github.com/frequency-chain/docs/blob/main/{path}"
preferred-dark-theme = "coal"
additional-css = [
"css/tailwind.css",
"css/side-nav.css",
"css/button-links.css",
"css/header.css",
"css/extended.css",
"css/highlight.css",
"css/highlight-dark.css",
]

# https://github.com/Michael-F-Bryan/mdbook-linkcheck
[output.linkcheck]
exclude = [
'github\.com/paseo-network',
'github\.com/frequency-chain/docs',
'github\.com/frequency-chain/frequency/releases',
'github\.com/frequency-chain/frequency',
'twitter\.com',
'www\.frequency\.xyz',
]
follow-web-links = true
traverse-parent-directories = false
# [output.linkcheck]
# exclude = [
# 'github\.com/paseo-network',
# 'github\.com/frequency-chain/docs',
# 'github\.com/frequency-chain/frequency/releases',
# 'github\.com/frequency-chain/frequency',
# 'twitter\.com',
# 'www\.frequency\.xyz',
# ]
# follow-web-links = true
# traverse-parent-directories = false

[output.html.fold]
enable = true
74 changes: 74 additions & 0 deletions css/button-links.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
.button-links,
.button-links > p {
display: flex;
justify-content: space-around;
align-content: center;
align-items: stretch;
flex-wrap: wrap;
}

.button-links > p {
width: 100%;
margin: 0;
}

.button-links a,
.button-links > p a,
.button-links a:link,
.button-links > p a:link {
text-decoration: none;
box-sizing: content-box;
font-weight: 700;
color: var(--button-nav-fg);
background-color: var(--button-nav-bg);
border: 2px solid transparent;
border-radius: 9999px;
user-select: none;
padding: 20px 10%;
margin: 10px;
display: flex;
font-size: 20px;
flex: 0.5;
transition-property: border, color;
transition-duration: 0.5s;
justify-content: center;
align-items: center;
text-align: center;
white-space: nowrap;
}

@media screen and (max-width: 1080px) {
.button-links a,
.button-links > p a,
.button-links a:link,
.button-links > p a:link {
box-sizing: border-box;
margin: 10px 6px;
flex: 0 0 90%;
width: 100%;
white-space: normal;
}
}

@media screen and (max-width: 400px) {
.button-links a,
.button-links > p a,
.button-links a:link,
.button-links > p a:link {
box-sizing: border-box;
margin: 10px 6px;
flex: 0 0 100%;
width: 100%;
white-space: normal;
}
}

.button-links a:hover,
.button-links > p a:hover,
.button-links a:visited:hover,
.button-links > p a:visited:hover {
text-decoration: none;
border: 2px solid var(--button-nav-hover-border);
color: var(--button-nav-hover-fg);
background: var(--button-nav-hover-bg);
}
1 change: 1 addition & 0 deletions css/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 2 additions & 62 deletions css/extended.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
}

#logo {
letter-spacing: -0.1rem;
font-size: 4.2rem;
letter-spacing: -1px;
font-size: 42px;
font-weight: 300;
line-height: 0;
}
Expand All @@ -27,66 +27,6 @@
padding: 10px 0;
}

.button-links {
display: flex;
justify-content: space-around;
align-content: center;
align-items: stretch;
flex-wrap: wrap;
}

.button-links a,
.button-links a:link {
box-sizing: content-box;
font-weight: 300;
color: var(--button-nav-fg);
background-color: var(--button-nav-bg);
border: 2px solid transparent;
border-radius: 15px;
user-select: none;
padding: 20px 10%;
margin: 10px;
display: flex;
font-size: 2rem;
font-weight: 400;
flex: 0.5;
transition-property: border, color;
transition-duration: 0.5s;
justify-content: center;
align-items: center;
text-align: center;
white-space: nowrap;
}

@media screen and (max-width: 1080px) {
.button-links a,
.button-links a:link {
box-sizing: border-box;
margin: 10px 6px;
flex: 0 0 90%;
width: 100%;
white-space: normal;
}
}

@media screen and (max-width: 400px) {
.button-links a,
.button-links a:link {
box-sizing: border-box;
margin: 10px 6px;
flex: 0 0 100%;
width: 100%;
white-space: normal;
}
}

.button-links a:hover,
.button-links a:visited:hover {
text-decoration: none;
border: 2px solid var(--button-nav-hover);
color: var(--button-nav-fg);
}

.svg-embed {
margin-top: 10px;
margin-bottom: 10px;
Expand Down
3 changes: 3 additions & 0 deletions css/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.header-shadow {
box-shadow: 0 4px 4px 0 #00000040;
}
27 changes: 27 additions & 0 deletions css/highlight-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,30 @@ pre .hljs {
.no-js .svg-embed-coal {
display: none;
}

.title-embed {
display: flex;
align-items: last baseline;
margin-top: 0.5em;
margin-bottom: 0.5em;
}

.title-embed-light {
display: none;
width: 64px;
height: 64px;
margin-right: 8px;
}

.title-embed-coal {
display: flex;
width: 64px;
height: 64px;
margin-right: 8px;
}

.embed-number {
font-size: 60px;
font-weight: bold;
color: #f77c47;
}
27 changes: 27 additions & 0 deletions css/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,30 @@ pre .hljs {
.svg-embed-coal {
display: none;
}

.title-embed {
display: flex;
align-items: last baseline;
margin-top: 0.5em;
margin-bottom: 0.5em;
}

.title-embed-light {
display: flex;
width: 64px;
height: 64px;
margin-right: 8px;
}

.title-embed-coal {
display: none;
width: 64px;
height: 64px;
margin-right: 8px;
}

.embed-number {
font-size: 60px;
font-weight: bold;
color: #f77c47;
}
Loading