Skip to content

Commit

Permalink
doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Campbell authored and Cameron Campbell committed May 18, 2024
1 parent a5d367d commit a7aeea2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/buildDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const buildMdForApis = async (apisJson: { [apiName: string]: { [apiMethod: strin
for (const [apiName, apis] of Object.entries(apisJson)) {
apisMetaJson[apiName] = formatApiName(apisName, apiName)

const apiMetaJson: Record<string, string> = {}
const apiMetaJson: Record<string, string> = { }
await mkdir(`${basePath}/${apisName}/${apiName}`, { recursive: true })

for (const [methodName, methodData] of Object.entries(apis)) {
Expand Down Expand Up @@ -241,6 +241,7 @@ await Bun.write(`${docsSitePages}/_meta.json`, JSON.stringify({
"guides": { type: "page", title: "Guides" },
"cloud": { type: "page", title: "Cloud APIs" },
"classic": { type: "page", title: "Classic APIs" },
"index": { type: "page", display: "hidden" }
}, null, 4))

await Bun.write(`${docsSitePages}/_app.js`, `
Expand All @@ -265,11 +266,16 @@ export default function MyApp({ Component, pageProps }) {
`)

await Bun.write(`${docsSite}/theme.config.tsx`, `
import React from 'react'
import { DocsThemeConfig } from 'nextra-theme-docs'
const config: DocsThemeConfig = {
logo: <span>Openblox</span>,
logo: <svg width="133.25" height="26" viewBox="0 0 1312 256" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M148.658 163.781L19.4926 129.166L0 201.892L201.891 256L230.468 149.4L157.742 129.908L148.658 163.781Z" fill="white" style={{ fill: "white", fillOpacity: 1 }} />
<path d="M25.5312 106.6L54.108 0L256 54.1079L236.507 126.808L107.342 92.1924L98.2578 126.067L25.5312 106.6Z" fill="#3178C6" style={{ fill: "color(display-p3 0.1922 0.4706 0.7765)", fillOpacity:1 }}/>
<path d="M396.05 204.035C381.805 204.035 370.477 199.965 362.066 191.825C353.79 183.685 349.652 172.425 349.652 158.044V97.401C349.652 82.8847 353.79 71.6243 362.066 63.62C370.477 55.48 381.805 51.41 396.05 51.41C410.295 51.41 421.555 55.48 429.831 63.62C438.242 71.6243 442.448 82.8168 442.448 97.1975V158.044C442.448 172.425 438.242 183.685 429.831 191.825C421.555 199.965 410.295 204.035 396.05 204.035ZM396.05 181.65C402.969 181.65 408.192 179.818 411.72 176.155C415.247 172.357 417.011 166.998 417.011 160.079V95.366C417.011 88.3113 415.247 82.9525 411.72 79.2895C408.192 75.6265 402.969 73.795 396.05 73.795C389.131 73.795 383.908 75.6265 380.381 79.2895C376.853 82.9525 375.09 88.3113 375.09 95.366V160.079C375.09 166.998 376.853 172.357 380.381 176.155C384.044 179.818 389.267 181.65 396.05 181.65ZM472.69 238.63V90.075H497.517V112.663H503.215L495.889 123.245C495.889 112.392 498.806 103.845 504.64 97.6045C510.473 91.2282 518.342 88.04 528.246 88.04C535.436 88.04 541.744 89.8715 547.171 93.5345C552.733 97.0618 557.007 102.014 559.992 108.39C563.112 114.766 564.672 122.228 564.672 130.775V161.096C564.672 169.643 563.112 177.173 559.992 183.685C557.007 190.061 552.801 195.081 547.375 198.744C541.948 202.271 535.572 204.035 528.246 204.035C518.342 204.035 510.473 200.847 504.64 194.47C498.806 188.094 495.889 179.547 495.889 168.829L503.215 179.615H497.314L498.128 207.291V238.63H472.69ZM518.681 182.057C525.193 182.057 530.213 180.293 533.74 176.766C537.403 173.103 539.235 167.676 539.235 160.486V131.589C539.235 124.263 537.403 118.836 533.74 115.309C530.213 111.782 525.193 110.018 518.681 110.018C512.169 110.018 507.082 111.985 503.419 115.919C499.891 119.854 498.128 125.416 498.128 132.606V159.468C498.128 166.659 499.891 172.221 503.419 176.155C507.082 180.09 512.169 182.057 518.681 182.057ZM640.295 204.035C630.798 204.035 622.522 202.204 615.468 198.54C608.413 194.877 602.918 189.722 598.984 183.074C595.185 176.291 593.286 168.355 593.286 159.265V132.81C593.286 123.72 595.185 115.852 598.984 109.204C602.918 102.421 608.413 97.1975 615.468 93.5345C622.522 89.8715 630.798 88.04 640.295 88.04C649.656 88.04 657.796 89.8715 664.715 93.5345C671.769 97.1975 677.196 102.353 680.995 109C684.929 115.512 686.896 123.178 686.896 131.996V152.346H617.706V160.079C617.706 167.676 619.673 173.442 623.608 177.376C627.542 181.175 633.104 183.074 640.295 183.074C645.586 183.074 650.063 182.193 653.726 180.429C657.524 178.53 659.763 175.816 660.441 172.289H685.675C683.911 181.921 678.892 189.654 670.616 195.488C662.34 201.186 652.233 204.035 640.295 204.035ZM662.476 137.897V131.792C662.476 124.059 660.577 118.09 656.778 113.884C653.115 109.679 647.621 107.576 640.295 107.576C632.969 107.576 627.338 109.747 623.404 114.088C619.605 118.294 617.706 124.263 617.706 131.996V135.862L664.308 135.659L662.476 137.897ZM716.731 202V90.075H741.558V111.442H748.477L740.948 117.344C741.083 108.39 743.932 101.267 749.495 95.9765C755.057 90.6855 762.451 88.04 771.676 88.04C782.665 88.04 791.416 91.703 797.928 99.029C804.575 106.355 807.899 116.191 807.899 128.536V202H782.462V131.589C782.462 124.67 780.698 119.379 777.171 115.716C773.643 111.917 768.759 110.018 762.519 110.018C756.142 110.018 751.123 111.917 747.46 115.716C743.932 119.515 742.169 124.941 742.169 131.996V202H716.731ZM894.307 204.035C884.403 204.035 876.535 200.915 870.701 194.674C864.867 188.298 861.951 179.683 861.951 168.829L869.277 179.411H863.579V202H838.752V53.445H864.189V84.784L863.375 112.663H869.277L861.747 123.245C861.747 112.392 864.664 103.845 870.498 97.6045C876.467 91.2282 884.403 88.04 894.307 88.04C905.296 88.04 914.114 91.9065 920.762 99.6395C927.41 107.372 930.734 117.819 930.734 130.978V161.3C930.734 174.324 927.41 184.702 920.762 192.435C914.114 200.168 905.296 204.035 894.307 204.035ZM884.743 182.057C891.255 182.057 896.274 180.293 899.802 176.766C903.465 173.103 905.296 167.676 905.296 160.486V131.589C905.296 124.263 903.465 118.836 899.802 115.309C896.274 111.782 891.255 110.018 884.743 110.018C878.231 110.018 873.143 111.985 869.48 115.919C865.953 119.854 864.189 125.416 864.189 132.606V159.468C864.189 166.659 865.953 172.221 869.48 176.155C873.143 180.09 878.231 182.057 884.743 182.057ZM1024.26 202C1016.94 202 1010.49 200.508 1004.93 197.523C999.505 194.538 995.231 190.333 992.111 184.906C988.991 179.344 987.431 172.967 987.431 165.777V76.4405H950.597V53.445H1012.87V165.166C1012.87 169.372 1014.02 172.764 1016.33 175.341C1018.77 177.783 1022.03 179.004 1026.1 179.004H1058.86V202H1024.26ZM1128.17 203.832C1118.68 203.832 1110.4 202 1103.35 198.337C1096.29 194.674 1090.86 189.519 1087.07 182.871C1083.27 176.088 1081.37 168.151 1081.37 159.061V133.013C1081.37 123.788 1083.27 115.852 1087.07 109.204C1090.86 102.556 1096.29 97.401 1103.35 93.738C1110.4 90.075 1118.68 88.2435 1128.17 88.2435C1137.81 88.2435 1146.08 90.075 1153 93.738C1160.05 97.401 1165.48 102.556 1169.28 109.204C1173.08 115.852 1174.98 123.788 1174.98 133.013V159.061C1174.98 168.151 1173.08 176.088 1169.28 182.871C1165.48 189.519 1160.05 194.674 1153 198.337C1146.08 202 1137.81 203.832 1128.17 203.832ZM1128.17 181.65C1134.96 181.65 1140.18 179.818 1143.84 176.155C1147.64 172.357 1149.54 166.93 1149.54 159.875V132.199C1149.54 125.009 1147.64 119.582 1143.84 115.919C1140.18 112.256 1134.96 110.425 1128.17 110.425C1121.53 110.425 1116.3 112.256 1112.5 115.919C1108.7 119.582 1106.81 125.009 1106.81 132.199V159.875C1106.81 166.93 1108.7 172.357 1112.5 176.155C1116.3 179.818 1121.53 181.65 1128.17 181.65ZM1196.47 202L1235.54 144.206L1199.12 90.075H1227.81L1245.11 117.547C1246.19 119.175 1247.14 121.007 1247.96 123.042C1248.9 125.077 1249.65 126.705 1250.19 127.926C1250.74 126.705 1251.48 125.077 1252.43 123.042C1253.38 121.007 1254.33 119.175 1255.28 117.547L1272.58 90.075H1301.48L1265.05 144.206L1303.92 202H1275.02L1255.69 171.271C1254.6 169.508 1253.59 167.608 1252.64 165.573C1251.69 163.538 1250.87 161.91 1250.19 160.689C1249.65 161.91 1248.9 163.538 1247.96 165.573C1247.01 167.608 1245.99 169.508 1244.9 171.271L1225.37 202H1196.47Z" fill="white" style={{ fill: "white", fillOpacity: 1 }} />
</svg>,
project: {
link: 'https://github.com/mightypart/openblox',
},
Expand Down

0 comments on commit a7aeea2

Please sign in to comment.