devicetree-spec.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] HTML site tweaks + SVG
@ 2017-08-07 23:39 Stephen Boyd
       [not found] ` <20170807233917.17409-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Boyd @ 2017-08-07 23:39 UTC (permalink / raw)
  To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA

These patches tweak the config to have the github project and sidebar
as well as add an SVG for the devicetree logo and then uses that
logo instead of the png on the website.

Stephen Boyd (3):
  conf: Configure html to have github project and sidebar
  Add an SVG logo
  Use the svg for html logo

 source/conf.py             | 17 +++++++++++++----
 source/devicetree-logo.svg | 14 ++++++++++++++
 2 files changed, 27 insertions(+), 4 deletions(-)
 create mode 100644 source/devicetree-logo.svg

-- 
2.10.0.297.gf6727b0

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] conf: Configure html to have github project and sidebar
       [not found] ` <20170807233917.17409-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2017-08-07 23:39   ` Stephen Boyd
  2017-08-07 23:39   ` [PATCH 2/3] Add an SVG logo Stephen Boyd
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2017-08-07 23:39 UTC (permalink / raw)
  To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA

The sidebar helps in navigating the document. Otherwise you have
to go to the home page to find the other sections. Also, add the
github repo information so we can link to it automatically with
the "watch" button.

Signed-off-by: Stephen Boyd <stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
 source/conf.py | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/source/conf.py b/source/conf.py
index 8f7111709646..4654e49761d2 100644
--- a/source/conf.py
+++ b/source/conf.py
@@ -133,7 +133,10 @@ html_theme = 'alabaster'
 # Theme options are theme-specific and customize the look and feel of a theme
 # further.  For a list of options available for each theme, see the
 # documentation.
-#html_theme_options = {}
+html_theme_options = {
+        'github_user': 'devicetree-org',
+        'github_repo': 'devicetree-specification',
+}
 
 # Add any paths that contain custom themes here, relative to this directory.
 html_theme_path = [alabaster.get_path()]
@@ -174,8 +177,14 @@ html_static_path = ['_static']
 #html_use_smartypants = True
 
 # Custom sidebar templates, maps document names to template names.
-#html_sidebars = {}
-
+html_sidebars = {
+    '**': [
+        'about.html',
+        'navigation.html',
+        'relations.html',
+        'searchbox.html',
+    ]
+}
 # Additional templates that should be rendered to pages, maps page names to
 # template names.
 #html_additional_pages = {}
-- 
2.10.0.297.gf6727b0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] Add an SVG logo
       [not found] ` <20170807233917.17409-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  2017-08-07 23:39   ` [PATCH 1/3] conf: Configure html to have github project and sidebar Stephen Boyd
@ 2017-08-07 23:39   ` Stephen Boyd
  2017-08-07 23:39   ` [PATCH 3/3] conf: Use the svg for html logo Stephen Boyd
  2017-08-08 22:08   ` [PATCH 0/3] HTML site tweaks + SVG Rob Herring
  3 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2017-08-07 23:39 UTC (permalink / raw)
  To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA

Traced over the png version in inkscape and then run through an
optimizer/simplifier to remove all the inkscape cruft.

Signed-off-by: Stephen Boyd <stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
 source/devicetree-logo.svg | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 source/devicetree-logo.svg

diff --git a/source/devicetree-logo.svg b/source/devicetree-logo.svg
new file mode 100644
index 000000000000..56f30d1bdbe3
--- /dev/null
+++ b/source/devicetree-logo.svg
@@ -0,0 +1,14 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 251.46 250.81">
+  <g transform="translate(-52.713 -357.557)">
+    <path fill="none" stroke="#000" stroke-width="4.5" d="M157.4 376.82l-.08-16.9M72.4 545.25l-17.3.07M301.57 545.48l-17.32.08M301.9 503.6l-17.2.07M301.7 461.87l-16.9.08M301.5 420.13l-16.92.08M240.73 376.88l-.08-16.9M198.85 376.82l-.08-16.9M115.63 377.2l-.07-17.36M71.9 420.36l-16.9.07M72.12 462.1l-16.9.07M72.3 503.82l-17.2.07M115.48 605.77l-.07-16.9M198.92 605.94l-.07-16.9M240.73 605.9l-.08-16.92M157.4 606.1l-.08-16.92M115.74 568.2H240.4" stroke-linecap="round"/>
+    <path fill="none" stroke="#000" stroke-width="4.4000001" d="M157.03 567.96v-36.2l-27.8-15.68"/>
+    <path fill="none" stroke="#000" stroke-width="5" d="M177.48 488.73l-33.36-19.04"/>
+    <path fill="none" stroke="#000" stroke-width="4.49999952" d="M178.48 566.8V450.97"/>
+    <path fill="none" stroke="#000" stroke-width="4.4000001" d="M199.03 567v-76.87l26.86-14.75"/>
+    <path fill="none" stroke="#000" stroke-width="4.7" d="M79.95 379.12h198.1c2.8 0 4.4 1.57 4.4 3.87l.06 200.16c0 2.13-2.03 3.66-4.38 3.66H81.98c-7.14 0-7.23 0-7.23-6.4V385.43c0-4.6 1.08-6.32 5.2-6.32z" stroke-linejoin="round"/>
+    <circle cx="128.28833" cy="458.41843" r="20.60775" fill="#8b63a9"/>
+    <circle cx="178.59291" cy="431.41653" r="20.60775" fill="#0cb2dd"/>
+    <circle cx="244.23465" cy="467.79355" r="20.60775" fill="#f48414"/>
+    <circle cx="112.6982" cy="507.95236" r="20.60775" fill="#009641"/>
+  </g>
+</svg>
-- 
2.10.0.297.gf6727b0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] conf: Use the svg for html logo
       [not found] ` <20170807233917.17409-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
  2017-08-07 23:39   ` [PATCH 1/3] conf: Configure html to have github project and sidebar Stephen Boyd
  2017-08-07 23:39   ` [PATCH 2/3] Add an SVG logo Stephen Boyd
@ 2017-08-07 23:39   ` Stephen Boyd
  2017-08-08 22:08   ` [PATCH 0/3] HTML site tweaks + SVG Rob Herring
  3 siblings, 0 replies; 5+ messages in thread
From: Stephen Boyd @ 2017-08-07 23:39 UTC (permalink / raw)
  To: devicetree-spec-u79uwXL29TY76Z2rM5mHXA

I couldn't get the pdf output to use the svg, but at least we can
get the html output to.

Signed-off-by: Stephen Boyd <stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
 source/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/conf.py b/source/conf.py
index 4654e49761d2..1881e29c8414 100644
--- a/source/conf.py
+++ b/source/conf.py
@@ -150,7 +150,7 @@ html_theme_path = [alabaster.get_path()]
 
 # The name of an image file (relative to this directory) to place at the top
 # of the sidebar.
-html_logo = "devicetree-logo.png"
+html_logo = "devicetree-logo.svg"
 
 # The name of an image file (relative to this directory) to use as a favicon of
 # the docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
-- 
2.10.0.297.gf6727b0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] HTML site tweaks + SVG
       [not found] ` <20170807233917.17409-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
                     ` (2 preceding siblings ...)
  2017-08-07 23:39   ` [PATCH 3/3] conf: Use the svg for html logo Stephen Boyd
@ 2017-08-08 22:08   ` Rob Herring
  3 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2017-08-08 22:08 UTC (permalink / raw)
  To: Stephen Boyd; +Cc: devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

On Mon, Aug 7, 2017 at 6:39 PM, Stephen Boyd <stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> These patches tweak the config to have the github project and sidebar
> as well as add an SVG for the devicetree logo and then uses that
> logo instead of the png on the website.
>
> Stephen Boyd (3):
>   conf: Configure html to have github project and sidebar
>   Add an SVG logo
>   Use the svg for html logo
>
>  source/conf.py             | 17 +++++++++++++----
>  source/devicetree-logo.svg | 14 ++++++++++++++
>  2 files changed, 27 insertions(+), 4 deletions(-)
>  create mode 100644 source/devicetree-logo.svg

Series applied. Thanks.

Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-08 22:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 23:39 [PATCH 0/3] HTML site tweaks + SVG Stephen Boyd
     [not found] ` <20170807233917.17409-1-stephen.boyd-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-08-07 23:39   ` [PATCH 1/3] conf: Configure html to have github project and sidebar Stephen Boyd
2017-08-07 23:39   ` [PATCH 2/3] Add an SVG logo Stephen Boyd
2017-08-07 23:39   ` [PATCH 3/3] conf: Use the svg for html logo Stephen Boyd
2017-08-08 22:08   ` [PATCH 0/3] HTML site tweaks + SVG Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).