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

feat: upgrade_docs #41

Merged
merged 56 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
5d97493
feat: upgrade_docs
isordo Sep 25, 2023
23ee848
Update deploy.yml
IsaccoSordo Sep 25, 2023
1775529
fix: added docs folder
isordo Sep 25, 2023
64a6ea4
fix: added missing monaco-types
isordo Sep 25, 2023
8ef2cba
fix: broken ssr
isordo Sep 25, 2023
f0407ce
feat: added stackblitz repo
isordo Sep 25, 2023
b6e9e69
feat: added stackblitz repo
isordo Sep 26, 2023
16de7be
fix: removed live
isordo Sep 26, 2023
807579e
fix: removed docs folder
isordo Sep 26, 2023
239d76e
fix: updated scripts
isordo Sep 26, 2023
dd7b16d
fix: removed monaco references
isordo Sep 26, 2023
308eddc
fix: removed embedme, it no longer works
isordo Sep 26, 2023
858efdb
fix: refactor wiki examples
isordo Sep 26, 2023
553d65e
feat: added live code blocks
isordo Sep 27, 2023
052e28a
feat: added title to every code blocks
isordo Sep 27, 2023
e379890
fix: updated import to local node_modules
isordo Sep 27, 2023
4865c34
feat: refactor first-dapp
isordo Sep 27, 2023
fe61580
feat: added live code blocks
isordo Sep 28, 2023
d1e3231
feat: added live code blocks
isordo Sep 28, 2023
a7bfd07
fix: added bundler script
isordo Sep 28, 2023
0c4719f
fix: error.message
isordo Sep 28, 2023
11e2fda
fix: refactor
isordo Sep 28, 2023
d10f902
feat: added logger
isordo Sep 28, 2023
7be0246
fix: mdx code
isordo Sep 28, 2023
8fe66a6
fix: added back prettier
isordo Sep 28, 2023
dd61289
feat: added live code block to more examples
isordo Sep 28, 2023
be957ed
feat: added even more live code block examples
isordo Sep 28, 2023
db06e34
feat: finished live code blocks refactor
isordo Sep 29, 2023
dbb1d67
fix: code snippets logs refactor
isordo Sep 29, 2023
98396cf
feat: added error handling
isordo Sep 29, 2023
43e994d
feat: added UI for run examples
isordo Oct 2, 2023
354c7fd
fix: typo
isordo Oct 2, 2023
eefd41d
feat: added reset&clear
isordo Oct 2, 2023
bdadbdf
fix: upgrade errors
isordo Oct 2, 2023
3b0e0d3
fix: code refactor
isordo Oct 2, 2023
807e8ef
fix: linked missing examples
isordo Oct 2, 2023
5e88ea0
feat: custom block explorer refactor
isordo Oct 2, 2023
09ac1ce
fix: improved error handling
isordo Oct 3, 2023
0e72377
fix: re-render automatic execution
isordo Oct 3, 2023
5b557df
Update deploy.yml
IsaccoSordo Oct 3, 2023
5dd7fd3
fix: build issues
isordo Oct 3, 2023
8673a46
fix: DApps page, fixed typos
isordo Oct 5, 2023
a94e1c4
fix: refactor examples
isordo Oct 5, 2023
1c5268f
fix: code formatting
isordo Oct 5, 2023
986a2eb
fix: refactor examples
isordo Oct 5, 2023
839d5de
fix: styling
isordo Oct 5, 2023
97bf00a
fix: removed tmp fix
isordo Oct 5, 2023
23f7e7c
chore(): update beacon-sdk
AndreasGassmann Oct 6, 2023
e5d9844
feat(docs): add push notification
AndreasGassmann Oct 6, 2023
f0bafe7
chore(): downgrade sdk
AndreasGassmann Oct 6, 2023
306e7f6
feat(sdk): update recommended and outdated versions
AndreasGassmann Oct 6, 2023
fe6dea2
feat(): add event to example
AndreasGassmann Oct 6, 2023
a438d44
feat(): update recommended versions
AndreasGassmann Oct 6, 2023
75d3aca
fix: pipeline
isordo Oct 6, 2023
082152b
fix(docs): typo
AndreasGassmann Oct 6, 2023
b8af4ac
Merge branch 'feat/upgrade_docs' of github.com:airgap-it/beacon-docs …
AndreasGassmann Oct 6, 2023
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
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.x'
- name: Test Build
run: |
if [ -e yarn.lock ]; then
Expand All @@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.x'
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Dependencies
/node_modules
/src/node_modules

# Production
/build/
/build-docs/

# Generated files
.docusaurus
Expand All @@ -22,6 +24,7 @@ yarn-error.log*
# Generated files and folders
build-examples
src/examples/*.js
src/*.js

/docs/
/src/components/monaco-types.ts
272 changes: 152 additions & 120 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,147 +1,179 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const path = require("path");

/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Beacon Docs",
tagline: "Connecting dApps with wallets.",
favicon: "img/favicon.ico",

// Set the production url of your site here
url: "https://docs.walletbeacon.io",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
themes: ["@docusaurus/theme-live-codeblock"],

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "airgap-it", // Usually your GitHub org/user name.
projectName: "beacon-docs", // Usually your repo name.

onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
favicon: "img/favicon.ico",
organizationName: "airgap-it",
projectName: "beacon-docs",
themeConfig: {
algolia: {
apiKey: "b28005d19273bc50236b7f73e6a0e7d7",
indexName: "walletbeacon",
searchParameters: {},
},
navbar: {
logo: {
alt: "Beacon Logo",
src: "img/logo.svg",
srcDark: "img/logo-white.svg",
onBrokenMarkdownLinks: "warn",

plugins: [
"docusaurus-node-polyfills",
[
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
to: "/supported-wallets",
from: ["/supported-wallets.html", "/beacon/wallets"], // string | string[]
},
],
},
items: [
{
type: "doc",
position: "left",
docId: "getting-started/simple-example",
label: "dApps",
},
{
type: "doc",
position: "left",
docId: "wallet/getting-started/web/getting-started",
label: "Wallets",
},
{ to: "playground/", label: "Playground", position: "right" },
{
href: "https://debug.walletbeacon.io",
label: "Debug Wallet",
position: "right",
},
{
href: "https://github.com/airgap-it/beacon-sdk",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Getting Started",
to: "/",
},
{
label: "Typedoc Reference",
href: "https://typedocs.walletbeacon.io",
},
],
},
{
title: "Community",
items: [
{
label: "Telegram",
href: "https://t.me/AirGap",
},
{
label: "Discord",
href: "https://discord.gg/vuf4Gtnqh7",
},
{
label: "Twitter",
href: "https://twitter.com/airgap_it",
},
{
label: "Blog",
href: "https://medium.com/airgap-it",
},
],
},
{
title: "Beacon Components",
items: [
{
label: "Beacon SDK",
href: "https://github.com/airgap-it/beacon-sdk",
},
{
label: "Beacon Android SDK",
href: "https://github.com/airgap-it/beacon-android-sdk",
},
{
label: "Beacon iOS SDK",
href: "https://github.com/airgap-it/beacon-ios-sdk",
},
{
label: "Beacon Node",
href: "https://github.com/airgap-it/beacon-node",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Papers AG - Open Source MIT License`,
},
prism: {
additionalLanguages: ["kotlin", "groovy", "swift", "ruby"],
},
],
],

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
},

presets: [
[
"@docusaurus/preset-classic",
{
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/airgap-it/beacon-docs/edit/main/src/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
}),
],
],
plugins: [
path.join(__dirname, "/plugins/monaco-editor"),
[
"@docusaurus/plugin-client-redirects",
{
redirects: [

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
logo: {
alt: "Beacon Logo",
src: "img/logo.svg",
srcDark: "img/logo-white.svg",
},
items: [
{
to: "/supported-wallets",
from: ["/supported-wallets.html", "/beacon/wallets"], // string | string[]
type: "doc",
position: "left",
docId: "getting-started/simple-example",
label: "DApps",
},
{
type: "doc",
position: "left",
docId: "wallet/getting-started/web/getting-started",
label: "Wallets",
},
{
href: "https://stackblitz.com/edit/vitejs-vite-71wsul?file=src%2Fmain.ts&terminal=dev",
label: "Playground",
position: "right",
},
{
href: "https://debug.walletbeacon.io",
label: "Debug Wallet",
position: "right",
},
{
href: "https://github.com/airgap-it/beacon-sdk",
label: "GitHub",
position: "right",
},
],
},
],
],
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Getting Started",
to: "/",
},
{
label: "Typedoc Reference",
href: "https://typedocs.walletbeacon.io",
},
],
},
{
title: "Community",
items: [
{
label: "Telegram",
href: "https://t.me/AirGap",
},
{
label: "Discord",
href: "https://discord.gg/vuf4Gtnqh7",
},
{
label: "Twitter",
href: "https://twitter.com/airgap_it",
},
{
label: "Blog",
href: "https://medium.com/airgap-it",
},
],
},
{
title: "Beacon Components",
items: [
{
label: "Beacon SDK",
href: "https://github.com/airgap-it/beacon-sdk",
},
{
label: "Beacon Android SDK",
href: "https://github.com/airgap-it/beacon-android-sdk",
},
{
label: "Beacon iOS SDK",
href: "https://github.com/airgap-it/beacon-ios-sdk",
},
{
label: "Beacon Node",
href: "https://github.com/airgap-it/beacon-node",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Papers AG - Open Source MIT License`,
},
prism: {
additionalLanguages: ["kotlin", "groovy", "swift", "ruby"],
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};

module.exports = config;
Loading
Loading