-
Notifications
You must be signed in to change notification settings - Fork 20
Refactor templates #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor templates #199
Changes from all commits
af11068
7f9ddea
8528bfc
63410e9
1e26af0
89e1327
9ab3387
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,4 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| {{> head-first}} | ||
| <title>{{{detag (or page.title 'Page Not Found')}}}{{#with site.title}} | {{this}}{{/with}}</title> | ||
| {{> head-last}} | ||
| </head> | ||
| <body class="status-404"> | ||
| {{> header}} | ||
| {{> body-404}} | ||
| {{> footer}} | ||
| </body> | ||
| </html> | ||
| {{> layout-shell | ||
| defaultTitle="Page Not Found" | ||
| bodyClass="status-404" | ||
| bodyTemplate="body-404"}} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,2 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| {{> head-first}} | ||
| <title>{{{detag (or page.title 'Untitled')}}}{{#with site.title}} | {{this}}{{/with}}</title> | ||
| {{> head-last}} | ||
| </head> | ||
| <body class="article"> | ||
| {{> header}} | ||
| {{> body}} | ||
| {{> footer}} | ||
| </body> | ||
| </html> | ||
| {{> layout-shell | ||
| defaultTitle="Untitled"}} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,4 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| {{> head-first}} | ||
| <title>Couchbase Documentation</title> | ||
| {{> head-last}} | ||
| </head> | ||
| <body class="home"> | ||
|
|
||
| {{> header}} | ||
| {{> body-home}} | ||
| {{> footer}} | ||
| </body> | ||
| </html> | ||
| {{> layout-shell | ||
| siteTitleOnly=true | ||
| bodyClass="home" | ||
| bodyTemplate="body-home"}} | ||
|
Comment on lines
+1
to
+4
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,8 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| {{> head-first}} | ||
| <title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title> | ||
| {{> head-last}} | ||
| </head> | ||
| <body class="landing-page"> | ||
| {{> header}} | ||
| {{> body-landing-page-capella}} | ||
| {{> footer}} | ||
| </body> | ||
| </html> | ||
| {{> layout-shell | ||
| bodyClass="landing-page" | ||
| defaultTitle="Landing Page" | ||
| bodyTemplate="body-landing" | ||
| nav="sidebar" | ||
| mainClass="capella-article" | ||
| articleClass="landing-page-capella" | ||
| capellaImages=true}} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,5 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| {{> head-first}} | ||
| <title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title> | ||
| {{> head-last}} | ||
| </head> | ||
| <body class="landing-page"> | ||
| {{> header}} | ||
| {{> body-landing-core-concept}} | ||
| {{> footer}} | ||
| </body> | ||
| </html> | ||
| {{> layout-shell | ||
| bodyClass="landing-page" | ||
| defaultTitle="Landing Page" | ||
| bodyTemplate="body-landing" | ||
| nav="full"}} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,5 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| {{> head-first}} | ||
| <title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title> | ||
| {{> head-last}} | ||
| </head> | ||
| <body class="landing-page"> | ||
| {{> header}} | ||
| {{> body-landing-sdk}} | ||
| {{> footer}} | ||
| </body> | ||
| </html> | ||
| {{> layout-shell | ||
| bodyClass="landing-page" | ||
| defaultTitle="Landing Page" | ||
| bodyTemplate="body-landing" | ||
| nav="full"}} |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,13 +1,5 @@ | ||||||
| <!DOCTYPE html> | ||||||
| <html lang="en"> | ||||||
| <head> | ||||||
| {{> head-first}} | ||||||
| <title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title> | ||||||
| {{> head-last}} | ||||||
| </head> | ||||||
| <body class="landing-page"> | ||||||
| {{> header}} | ||||||
| {{> body-landing-top-level-sdk}} | ||||||
| {{> footer}} | ||||||
| </body> | ||||||
| </html> | ||||||
| {{> layout-shell | ||||||
| bodyClass="landing-page" | ||||||
| defaultTitle="Landing Page" | ||||||
|
||||||
| defaultTitle="Landing Page" | |
| defaultTitle="landing page" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,13 +1,5 @@ | ||||||
| <!DOCTYPE html> | ||||||
| <html lang="en"> | ||||||
| <head> | ||||||
| {{> head-first}} | ||||||
| <title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title> | ||||||
| {{> head-last}} | ||||||
| </head> | ||||||
| <body class="landing-page"> | ||||||
| {{> header}} | ||||||
| {{> body-landing-tutorials}} | ||||||
| {{> footer}} | ||||||
| </body> | ||||||
| </html> | ||||||
| {{> layout-shell | ||||||
| bodyClass="landing-page" | ||||||
| defaultTitle="Landing Page" | ||||||
|
||||||
| defaultTitle="Landing Page" | |
| defaultTitle="landing page" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,4 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| {{> head-first}} | ||
| <title>{{{detag (or page.title 'landing page')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title> | ||
| {{> head-last}} | ||
| </head> | ||
| <body class="landing-page"> | ||
| {{> header}} | ||
| {{> body-landing}} | ||
| {{> footer}} | ||
| </body> | ||
| </html> | ||
| {{> layout-shell | ||
| bodyClass="landing-page" | ||
| defaultTitle="Landing Page" | ||
| bodyTemplate="body-landing"}} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,4 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| {{> head-first}} | ||
|
|
||
| <title>{{{detag (or page.title 'REST API')}}}{{#if site.title}} | {{{site.title}}}{{/if}}</title> | ||
| {{> head-last}} | ||
| <style> | ||
| #redoc { width: 100%} | ||
| </style> | ||
| <meta name='viewport' content='width=device-width, initial-scale=1' /> | ||
| </head> | ||
| <body class="rest-api"> | ||
| {{> header}} | ||
|
|
||
| <div class="body container"> | ||
|
|
||
|
|
||
| {{{page.contents}}} | ||
|
|
||
| </div> | ||
|
|
||
|
|
||
| {{> footer}} | ||
| </body> | ||
| </html> | ||
| {{> layout-shell | ||
| defaultTitle="REST API" | ||
| bodyClass="rest-api" | ||
| bodyTemplate="body-rest-api" }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,4 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| {{> head-first}} | ||
| <title>Tutorials{{#with site.title}} | {{this}}{{/with}}</title> | ||
| {{> head-last}} | ||
| </head> | ||
| <body class="tutorials body tiles"> | ||
| {{> header}} | ||
| {{> body-tutorials}} | ||
| {{> footer}} | ||
| </body> | ||
| </html> | ||
| {{> layout-shell | ||
| defaultTitle="Tutorials" | ||
| bodyClass="tutorials body tiles" | ||
| bodyTemplate="body-tutorials"}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new rule is formatted as a single-line block, but the surrounding rules in this file use multi-line blocks (e.g.,
code { ... }at src/css/base.css:69-73 and#redoc code { ... }at :76-79). Consider formatting#redocconsistently to match the established style.