Skip to content

Commit

Permalink
update to new theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ES-Alexander committed Nov 15, 2024
1 parent be8f806 commit 7eb3cc6
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 145 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Deploy to S3

on:
push:
pull_request:
types: [opened, synchronize, reopened, closed]
# pull_request:
# types: [opened, synchronize, reopened, closed]
workflow_dispatch:
workflow_run:
workflows: ["Sync Submodules"]
Expand Down Expand Up @@ -32,18 +32,18 @@ jobs:
- name: Upload official docs
if: ${{ github.event_name != 'pull_request' }}
run: |
aws s3 cp --recursive public s3://br-www-docs/blueos/${{ github.ref_name }}
- name: Upload proposal preview
if: ${{ github.event_name == 'pull_request' }}
run: |
aws s3 cp --recursive public s3://br-www-docs/preview/blueos/pull/${{ github.event.pull_request.number }}
cleanup:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.action == 'closed' }}
steps:
- name: Remove proposal preview
run: |
aws s3 rm --recursive s3://br-www-docs/preview/blueos/pull/${{ github.event.pull_request.number }}
aws s3 cp --recursive public s3://br-www-docs/docs/${{ github.ref_name }}
# - name: Upload proposal preview
# if: ${{ github.event_name == 'pull_request' }}
# run: |
# aws s3 cp --recursive public s3://br-www-docs/preview/blueos/pull/${{ github.event.pull_request.number }}
#
# cleanup:
# runs-on: ubuntu-latest
# if: ${{ github.event.pull_request.action == 'closed' }}
# steps:
# - name: Remove proposal preview
# run: |
# aws s3 rm --recursive s3://br-www-docs/preview/blueos/pull/${{ github.event.pull_request.number }}

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "themes/adidoks"]
path = themes/adidoks
url = https://github.com/ES-Alexander/adidoks.git
[submodule "bluetheme"]
path = themes/bluetheme
url = https://github.com/BlueRobotics/bluetheme
44 changes: 1 addition & 43 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ base_url = "https://blueos.cloud/docs/latest"
title = "BlueOS latest"

# The site theme to use.
theme = "adidoks"
theme = "bluetheme"

# The default language; used in feeds and search index
default_language="en"
Expand All @@ -29,45 +29,3 @@ include_content = true
# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
highlight_code = true

[extra]
ahrefs_verification_code = "68b21d8843bcc0ce30035c553ab9c2ac579c8ebfb8698573ea4f96f49ae00517"

# Put all your custom variables here
github = "https://github.com/bluerobotics"

# Set HTML file language
language_code = "en-US"

# Set theme-color meta tag for Chrome browser
theme_color = "#fff"

# Edit page on reposity or not
edit_page = true
docs_repo = "https://github.com/bluerobotics/ardusub-zola"
repo_branch = "main"

## Math settings
# options: true, false. Enable math support globally,
# default: false. You can always enable math on a per page.
math = false
library = "katex" # options: "katex", "mathjax". default is "katex".

[[extra.menu.social]]
name = "GitHub"
pre = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-github"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>'
url = "https://github.com/bluerobotics/ardusub-zola"
# post = "v0.1.0"
weight = 20

# Avoid "Docs" and "Blog" links in header
[[extra.menu.main]]
name = ""
url = ""
section = ""

# Footer contents
[extra.footer]
info = 'Powered by <a href="https://www.getzola.org/">Zola</a> and <a href="https://github.com/ES-Alexander/adidoks">AdiDoks</a>. Sponsored by <a href="http://www.bluerobotics.com/">Blue Robotics</a>.'

[extra.footer.nav]
info = 'Code under <a href="https://github.com/ArduPilot/ardupilot/blob/master/COPYING.txt">GPLv3 License</a>. Documentation under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC-NC-SA 4.0</a>.'
3 changes: 1 addition & 2 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ sort_by = "weight"
weight = 1
draft = false

[extra]
document_version = "1.0"
redirect_to = "usage/overview"
+++
2 changes: 1 addition & 1 deletion templates/docs/overview-section.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "section.html" %}
{% extends "docs/section.html" %}

{% block body %}
{% set page_class = "docs list" %}
Expand Down
31 changes: 0 additions & 31 deletions templates/docs/page.html

This file was deleted.

52 changes: 0 additions & 52 deletions templates/docs/section.html

This file was deleted.

1 change: 1 addition & 0 deletions themes/bluetheme
Submodule bluetheme added at 5e7f7f

0 comments on commit 7eb3cc6

Please sign in to comment.