Skip to content

Commit

Permalink
feat: remove oz images and add aragon favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
clauBv23 committed Dec 10, 2024
1 parent 74693b2 commit 3139075
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "yarn build:theme && bash scripts/build.sh --fetch playbook.yml",
"build:no-fetch": "bash scripts/build.sh playbook.yml",
"build:local": "bash scripts/build.sh playbook-local-only.yml",
"build:local": "yarn build:theme && bash scripts/build.sh playbook-local-only.yml",
"serve:all-optimized": "yarn && yarn optimize-svg && yarn build && yarn serve",
"optimize-svg": "svgo -rf ./static/img -o ./static/optimized-svg",
"build:theme": "yarn --cwd ui build",
Expand Down
38 changes: 35 additions & 3 deletions playbook-local-only.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,51 @@
site:
title: Aragon Docs
url: https://docs.aragon.org
url: http://localhost/
start_page: ROOT::index.adoc
keys:
google_analytics: 'UA-85043059-1'
gtm: 'GTM-W9X5Q6F'
content:
sources:
- url: .
branches: HEAD
branches: feature/new-way-theming
start_path: components/home
- url: https://github.com/aragon/multisig-plugin
branches: feature/docs
start_path: packages/contracts/docs
- url: https://github.com/aragon/token-voting-plugin
branches: feature/docs
start_path: packages/contracts/docs
- url: https://github.com/aragon/admin-plugin
branches: feat/docs
start_path: packages/contracts/docs
- url: https://github.com/aragon/osx
branches: feat/docs-add-missing-pages
start_path: packages/contracts/docs
- url: https://github.com/aragon/osx-commons
branches: feature/docs
start_path: contracts/docs
- url: https://github.com/aragon/staged-proposal-processor-plugin
branches: feature/docs
start_path: docs
- url: https://github.com/aragon/gov-ui-kit
branches: feat/documentation-antora
start_path: docs
- url: https://github.com/aragon/gov-app-template
branches: feat/documentation-antora
start_path: docs

ui:
bundle:
url: ./ui/theme
asciidoc:
attributes:
idprefix: ''
antora:
extensions:
- require: './lunr-tokenizer'
- require: '@antora/lunr-extension'
index_latest_only: true
urls:
redirect_facility: netlify
html_extension_style: drop
redirect_facility: netlify
Binary file removed ui/theme/images/Aragon-logo-circle.png
Binary file not shown.
Binary file added ui/theme/images/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/theme/images/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed ui/theme/images/favicon-192x192.png
Binary file not shown.
Binary file modified ui/theme/images/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed ui/theme/images/favicon-96x96.png
Binary file not shown.
Binary file added ui/theme/images/favicon.ico
Binary file not shown.
Binary file removed ui/theme/images/social.png
Binary file not shown.
2 changes: 1 addition & 1 deletion ui/theme/partials/header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</button>
<div class="navbar-logo">
<a href="{{@root.site.url}}">
<img src="../../../../../../../_/images/logo-light.png">
<img src="{{@root.site.url}}{{@root.site.ui.url}}/images/logo-light.png">
</a>
</div>
<div id="search-field" class="navbar-search" >
Expand Down
11 changes: 8 additions & 3 deletions ui/theme/partials/layout.hbs
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/png" href="../../../../../../../_/images/Aragon-logo-circle.png">

<link rel="icon" sizes="32x32" href="{{@root.site.url}}{{@root.site.ui.url}}/images/favicon.ico"/>
<link rel="icon" type="image/png" sizes="16x16" href="{{@root.site.url}}{{@root.site.ui.url}}/theme/images/favicon-16x16.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="{{@root.site.url}}{{@root.site.ui.url}}/theme/images/favicon-32x32.png"/>
<link rel="apple-touch-icon" href="{{@root.site.url}}{{@root.site.ui.url}}/theme/images/apple-touch-icon.png" />

<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:image" content="{{@root.site.url}}{{@root.site.ui.url}}/images/Aragon_OSx_Thumbnail.png">
{{#if keywords}}
<meta name="keywords" content="{{keywords}}">
{{/if}}
Expand All @@ -20,8 +26,7 @@

<title>{{#if page.title}}{{{page.title}}} - {{/if}}{{site.title}}</title>
<meta name="twitter:card" content="summary">
<meta property="og:title" content="{{#if page.title}}{{{page.title}}} - {{/if}}{{site.title}}">
<meta property="og:image" content="../../../../../../../_/images/Aragon_OSx_Thumbnail.png">
<meta property="og:title" content="{{#if page.title}}{{{page.title}}} - {{/if}}{{site.title}}">
{{#if description}}
<meta name="description" content="{{description}}">
<meta property="og:description" content="{{description}}">
Expand Down

0 comments on commit 3139075

Please sign in to comment.