-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs build or publish to workflows
- Loading branch information
1 parent
fba1848
commit a9cd80f
Showing
26 changed files
with
496 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Check DKG " | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 2, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"Casimir Goerli DKG messenger is up and healthy\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"import requests\n", | ||
"\n", | ||
"url = f\"https://nodes.casimir.co/eth/goerli/dkg/messenger/ping\"\n", | ||
"\n", | ||
"response = requests.get(url)\n", | ||
"\n", | ||
"if response.status_code != 200:\n", | ||
" print(f\"Casimir Goerli DKG messenger server is not responding\")\n", | ||
"else: \n", | ||
" data = response.json()\n", | ||
" if data['message'] == \"pong\":\n", | ||
" print(f\"Casimir Goerli DKG messenger is responding and healthy\")\n", | ||
" else:\n", | ||
" print(f\"Casimir Goerli DKG messenger is responding and not healthy\")" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "casimir-data", | ||
"language": "python", | ||
"name": "casimir-data" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.17" | ||
}, | ||
"orig_nbformat": 4 | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ test = 'test' | |
cache_path = 'build/foundry/cache' | ||
|
||
[doc] | ||
title = 'Casimir Ethereum Docs' | ||
out = 'build/foundry/docs' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import fs from 'fs' | ||
import { run } from '@casimir/helpers' | ||
|
||
void async function () { | ||
const cargo = await run('which cargo') as string | ||
if (!cargo || cargo.includes('not found')) { | ||
throw new Error('🚩 Please install rust (see https://www.rust-lang.org/tools/install)') | ||
} | ||
|
||
const mdbookKatex = await run('cargo install --list | grep mdbook-katex') as string | ||
if (!mdbookKatex) { | ||
await run('cargo install mdbook-katex') | ||
} | ||
|
||
const mdbookMermaid = await run('cargo install --list | grep mdbook-mermaid') as string | ||
if (!mdbookMermaid) { | ||
await run('cargo install mdbook-mermaid') | ||
} | ||
|
||
const config = await run('forge config') as string | ||
|
||
const outDir = config.match(/\[doc\]\nout = "(.*)"/)?.[1] as string | ||
if (!fs.existsSync(outDir)) { | ||
fs.mkdirSync(outDir, { recursive: true }) | ||
} | ||
|
||
const publicDir = fs.readdirSync('public') | ||
for (const file of publicDir) { | ||
fs.copyFileSync(`public/${file}`, `${outDir}/${file}`) | ||
} | ||
|
||
let command = 'forge doc' | ||
if (process.env.DEV === 'true') { | ||
command += ' --serve --port=5458' | ||
} else { | ||
command += ' --build' | ||
} | ||
|
||
await run(command) | ||
}() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,33 @@ | ||
import * as cdk from 'aws-cdk-lib' | ||
import * as certmgr from 'aws-cdk-lib/aws-certificatemanager' | ||
import * as ec2 from 'aws-cdk-lib/aws-ec2' | ||
import * as ecs from 'aws-cdk-lib/aws-ecs' | ||
import * as route53 from 'aws-cdk-lib/aws-route53' | ||
|
||
export type DnsStackProps = cdk.StackProps | ||
export type AnalyticsStackProps = cdk.StackProps | ||
export type NetworkStackProps = cdk.StackProps | ||
|
||
export interface DocsStackProps extends cdk.StackProps { | ||
certificate: certmgr.Certificate | ||
hostedZone: route53.HostedZone | ||
} | ||
|
||
export interface LandingStackProps extends cdk.StackProps { | ||
/** Stage-specific certificate */ | ||
certificate?: certmgr.Certificate | ||
/** Project-wide route53 hosted zone */ | ||
certificate: certmgr.Certificate | ||
hostedZone: route53.HostedZone | ||
} | ||
|
||
export interface WebStackProps extends cdk.StackProps { | ||
/** Stage-specific certificate */ | ||
certificate?: certmgr.Certificate | ||
/** Project-wide route53 hosted zone */ | ||
certificate: certmgr.Certificate | ||
hostedZone: route53.HostedZone | ||
} | ||
|
||
export interface NodesStackProps extends cdk.StackProps { | ||
/** Project-wide route53 hosted zone */ | ||
hostedZone: route53.HostedZone | ||
} | ||
|
||
export interface UsersStackProps extends cdk.StackProps { | ||
/** Stage-specific certificate */ | ||
certificate?: certmgr.Certificate | ||
/** Project-wide route53 hosted zone */ | ||
certificate: certmgr.Certificate | ||
hostedZone: route53.HostedZone | ||
/** Stage-specific VPC */ | ||
vpc: ec2.Vpc | ||
} |
Oops, something went wrong.