Skip to content

Commit c24ab98

Browse files
authored
Merge pull request #199 from couchbase/refactor-templates
Refactor templates
2 parents 7390e27 + 9ab3387 commit c24ab98

28 files changed

Lines changed: 137 additions & 568 deletions

src/css/base.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ code {
7878
color: inherit;
7979
}
8080

81+
#redoc { width: 100%; }
82+
8183
a code {
8284
color: var(--color-link);
8385
background-color: transparent;

src/css/contributor.css

Lines changed: 0 additions & 70 deletions
This file was deleted.

src/css/site.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
@import "clipboard.css";
3030
@import "table.css";
3131
@import "landing-page.css";
32-
@import "contributor.css";
3332
@import "terminal.css";
3433
@import "external-link-icon.css";
3534
@import "disable-callouts.css";

src/js/08-contributor-bot.js

Lines changed: 0 additions & 87 deletions
This file was deleted.

src/layouts/404.hbs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
{{> head-first}}
5-
<title>{{{detag (or page.title 'Page Not Found')}}}{{#with site.title}} | {{this}}{{/with}}</title>
6-
{{> head-last}}
7-
</head>
8-
<body class="status-404">
9-
{{> header}}
10-
{{> body-404}}
11-
{{> footer}}
12-
</body>
13-
</html>
1+
{{> layout-shell
2+
defaultTitle="Page Not Found"
3+
bodyClass="status-404"
4+
bodyTemplate="body-404"}}

src/layouts/default.hbs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
{{> head-first}}
5-
<title>{{{detag (or page.title 'Untitled')}}}{{#with site.title}} | {{this}}{{/with}}</title>
6-
{{> head-last}}
7-
</head>
8-
<body class="article">
9-
{{> header}}
10-
{{> body}}
11-
{{> footer}}
12-
</body>
13-
</html>
1+
{{> layout-shell
2+
defaultTitle="Untitled"}}

src/layouts/home.hbs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
{{> head-first}}
5-
<title>Couchbase Documentation</title>
6-
{{> head-last}}
7-
</head>
8-
<body class="home">
9-
10-
{{> header}}
11-
{{> body-home}}
12-
{{> footer}}
13-
</body>
14-
</html>
1+
{{> layout-shell
2+
siteTitleOnly=true
3+
bodyClass="home"
4+
bodyTemplate="body-home"}}
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
{{> head-first}}
5-
<title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title>
6-
{{> head-last}}
7-
</head>
8-
<body class="landing-page">
9-
{{> header}}
10-
{{> body-landing-page-capella}}
11-
{{> footer}}
12-
</body>
13-
</html>
1+
{{> layout-shell
2+
bodyClass="landing-page"
3+
defaultTitle="Landing Page"
4+
bodyTemplate="body-landing"
5+
nav="sidebar"
6+
mainClass="capella-article"
7+
articleClass="landing-page-capella"
8+
capellaImages=true}}
Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
{{> head-first}}
5-
<title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title>
6-
{{> head-last}}
7-
</head>
8-
<body class="landing-page">
9-
{{> header}}
10-
{{> body-landing-core-concept}}
11-
{{> footer}}
12-
</body>
13-
</html>
1+
{{> layout-shell
2+
bodyClass="landing-page"
3+
defaultTitle="Landing Page"
4+
bodyTemplate="body-landing"
5+
nav="full"}}

src/layouts/landing-page-sdk.hbs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
<!DOCTYPE html>
2-
<html lang="en">
3-
<head>
4-
{{> head-first}}
5-
<title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title>
6-
{{> head-last}}
7-
</head>
8-
<body class="landing-page">
9-
{{> header}}
10-
{{> body-landing-sdk}}
11-
{{> footer}}
12-
</body>
13-
</html>
1+
{{> layout-shell
2+
bodyClass="landing-page"
3+
defaultTitle="Landing Page"
4+
bodyTemplate="body-landing"
5+
nav="full"}}

0 commit comments

Comments
 (0)