From eaf8cc1be09a2c855f566fc1e56f760d327cef47 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 5 Mar 2017 15:25:51 +0000 Subject: docs.brew.sh: use brew.sh theming. Unfortunately there's no easy way to share this code with the brew.sh site but it's at least able to have the `css/`, `img/` (root) and `_layouts` directories in sync between the two repositories. Some small CSS tweaks were needed to make these pages render more attractively. --- docs/_layouts/base.html | 102 ++++++++++++++++++++++++++++++++ docs/_layouts/home.html | 6 ++ docs/_layouts/index.html | 147 +++++++++++++++++++++++++++++++++++++++++++++++ docs/_layouts/page.html | 6 ++ docs/_layouts/post.html | 11 ++++ 5 files changed, 272 insertions(+) create mode 100644 docs/_layouts/base.html create mode 100644 docs/_layouts/home.html create mode 100644 docs/_layouts/index.html create mode 100644 docs/_layouts/page.html create mode 100644 docs/_layouts/post.html (limited to 'docs/_layouts') diff --git a/docs/_layouts/base.html b/docs/_layouts/base.html new file mode 100644 index 000000000..71ca22ce4 --- /dev/null +++ b/docs/_layouts/base.html @@ -0,0 +1,102 @@ + + +
+ + + {% if page.title %} +
+ {{ page.subtitle }}
+ {% endif %} + + {% if page.lang %} + + {% endif %} +
+
+
+
diff --git a/docs/_layouts/home.html b/docs/_layouts/home.html
new file mode 100644
index 000000000..7a72189ac
--- /dev/null
+++ b/docs/_layouts/home.html
@@ -0,0 +1,6 @@
+---
+layout: base
+---
+/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
+ {{ page.pagecontent.install.paste }}
+{{ page.pagecontent.install.what }}
+{{ page.pagecontent.what }}
+{{ page.pagecontent.how }}
+{{ page.pagecontent.prefix }}
+{{ page.pagecontent.createpackages }}
+{{ page.pagecontent.hack }}
+{{ page.pagecontent.formula }}
+{{ page.pagecontent.complement }}
+{{ page.pagecontent.foot.code }} {{ page.pagecontent.foot.page }} {{ page.pagecontent.foot.translation }}
+