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

Dawn/build applications connect index #172

Open
wants to merge 16 commits into
base: eshaben/new-ia-dropdowns
Choose a base branch
from
Open
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
61 changes: 61 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Deploy Docs
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to build and deploy documentation from'
required: true
default: 'main'

permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: true # Ensures submodules are initialized & updated
fetch-depth: 0 # Ensures full history for proper branch handling

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

- name: Checkout submodule branch
run: |
cd wormhole-docs
git checkout ${{ inputs.branch }} # Switch to the specified branch
git pull origin ${{ inputs.branch }} # Ensure it's up to date

- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-

- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-dev build-essential

- name: Install pip requirements
run: |
# upgrade pip
python -m pip install --upgrade pip setuptools 'cython<3.0.0' wheel
# install dependencies quietly
python -m pip install -r requirements.txt

- name: Update image paths in Markdown files
run: |
find wormhole-docs -type f -name "*.md" -exec sed -i -e 's|](/docs/|](/wormhole-mkdocs/|g' -e 's|href="/docs/|href="/wormhole-mkdocs/|g' {} \;
find material-overrides -type f -name "*.html" -exec sed -i -e 's|/docs/|/wormhole-mkdocs/|g' {} \;

- name: Deploy Docs
run: mkdocs gh-deploy --force --clean --site-dir ./site
5 changes: 0 additions & 5 deletions material-overrides/assets/stylesheets/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ h3 {

.hero h1 {
font-size: 120px;
line-height: var(--header-line-height);
margin-bottom: 0;
}

Expand Down Expand Up @@ -136,11 +135,9 @@ h3 {

.feature h2 {
color: var(--md-default-fg-color);
font-family: var(--md-header-font);
font-size: 36px;
margin: 1em auto 0;
margin-bottom: 0;
line-height: var(--header-line-height);
}

.feature p {
Expand All @@ -154,11 +151,9 @@ h3 {
}

.start-building-section h3 {
font-family: var(--md-header-font);
font-size: 60px;
margin-top: 0;
margin-bottom: 0;
line-height: var(--header-line-height);
width: 66%;
}

Expand Down
74 changes: 74 additions & 0 deletions material-overrides/assets/stylesheets/spantable-neoteroi.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/**
* Extra CSS file for neoteroi spantable, modified from the orginal:

https://github.com/Neoteroi/mkdocs-plugins/blob/main/styles/spantable.scss
*
* https://github.com/Neoteroi/mkdocs-plugins
**/

/** Span Table CSS **/

.span-table-wrapper table {
border-collapse: collapse;
margin-bottom: 2rem;
border-radius: var(--md-border-radius);
}

.span-table td,
.span-table th {
padding: 0.2rem;
font-size: 0.64rem;
max-width: 100%;
overflow: auto;
touch-action: auto;
border-bottom: 0.05rem solid var(--md-typeset-table-color);
padding: 0.9375em 1.25em;
vertical-align: top;
}

.span-table tr:first-child {
background-color: var(--md-typeset-table-color);
}

.span-table tr:first-child td:first-child {
border-top-left-radius: var(--md-border-radius);
}

.span-table tr:first-child td:last-child {
border-right: none;
border-top-right-radius: 1em;
}

.span-table tr:first-child td {
font-weight: 700;
min-width: 5rem;
padding: 0.9375em 1.25em;
vertical-align: top;
}

/* This is only applicable to 5 column tables */
/* Might need to make this more dynamic in the future */
.span-table tr:not(:first-child):has(:nth-child(5)) > td:first-child {
border-left: 0.05rem solid var(--md-typeset-table-color);
border-right: 0.05rem solid var(--md-typeset-table-color);
font-weight: bold;
}

/* Only select rows with one column (used to break up tables) */
.span-table tr:not(:has(:nth-child(2))) {
text-align: center;
background-color: var(--md-typeset-table-color);
}

.span-table td:last-child {
border-right: 0.05rem solid var(--md-typeset-table-color);
}

.span-table [colspan],
.span-table [rowspan] {
font-weight: bold;
border-left: 0.05rem solid var(--md-typeset-table-color);
border-right: 0.05rem solid var(--md-typeset-table-color);
}


Loading