Skip to content

Commit

Permalink
feat: cleanup workflows, remove site files, update theme
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielp committed Nov 2, 2023
1 parent c7125e0 commit fdf0c2d
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 18 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ jobs:
uses: Gr1N/setup-poetry@v8

- name: install dependencies
run: make poetry-install
run: make build

- name: build the doc site and ensure no changes
run: |
make build
git diff -s --exit-code -- . ':(exclude)site/sitemap.xml.gz' || (echo 'Generated website is out of date, please run make build and commit changes in this PR' && exit 1)

- name: upload pages artifact
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,3 +167,4 @@ Brewfile.lock.json

# Misc
tmp/
site/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ poetry-install:
poetry install

.PHONY: build
build:
build: poetry-install
poetry run mkdocs build

.PHONY: serve
Expand Down
23 changes: 15 additions & 8 deletions docs/styles/extra.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
:root {
/* Override the primary foreground color */
--md-primary-fg-color: #007DAA;
--md-primary-fg-color--light: #858585;
--md-primary-fg-color--dark: #262626;
--md-primary-bg-color: #EBEBE8;
--md-primary-bg-color--light: #F8F8F8;
--md-primary-fg-color: #24AE1D;
--md-primary-fg-color--light: #858585;
--md-primary-fg-color--dark: #262626;
--md-primary-bg-color: #EBEBE8;
--md-primary-bg-color--light: #F8F8F8;

/* Override the accent foreground color */
--md-accent-fg-color: #89DF00;
--md-accent-fg-color: #24AE1D;
--md-accent-fg-color--transparent: rgba(0, 125, 170, 0.1); /* This uses #007DAA at 10% opacity */
--md-accent-bg-color: #F8F8F8;
--md-accent-bg-color--light: #F8F8F8;
--md-accent-bg-color: #F8F8F8;
--md-accent-bg-color--light: #F8F8F8;
}

.md-search-result mark {
--md-accent-fg-color: #24AE1D;
}

[data-md-color-accent=indigo] {
--md-accent-fg-color: #24AE1D;
}
7 changes: 3 additions & 4 deletions docs/styles/table.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.highlight-bg {
background-color: #2396bc;
background-color: #24AE1D;
color: #ffffff;
text-align: center; /* Doesn't work */
width: 100%; /* make the background color span the width of the page */
display: block;
}

.highlight-hdr {
background-color: #117b9e;
background-color: #2caf25;
text-align: center; /* Doesn't work */
color: #ffffff;
vertical-align: middle; /* Doesn't work */
Expand All @@ -16,9 +16,8 @@
}

.highlight-cell{
background-color: #40bae3;
background-color: #3be333;
text-align: center !important; /* Doesn't work */
color: #000000;
vertical-align: middle; /* center the content vertically */
}

30 changes: 30 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@ site_name: 'Open O11y'
theme:
name: material
custom_dir: docs/overrides
icon:
repo: fontawesome/brands/github
edit: material/pencil
view: material/eye
palette:
# Palette toggle for light mode
- scheme: default
primary: custom
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- scheme: slate
primary: custom
toggle:
icon: material/brightness-4
name: Switch to light mode

features:
- content.action.edit
- content.action.view
- navigation.tabs
- navigation.tabs.sticky
- navigation.footer
- navigation.instant
- navigation.expand
- navigation.path
- navigation.top

markdown_extensions:
- pymdownx.superfences:
Expand All @@ -16,6 +44,8 @@ extra_css:
- "styles/extra.css"
- "styles/table.css"

repo_url: https://github.com/liatrio/openo11y.dev

nav:
- 'Welcome to Open O11y': 'index.md'
- 'Guidance':
Expand Down

0 comments on commit fdf0c2d

Please sign in to comment.