diff --git a/content/about-block-inline-tags.md b/content/about-block-inline-tags.md
index e0a8181..306f39f 100644
--- a/content/about-block-inline-tags.md
+++ b/content/about-block-inline-tags.md
@@ -1,6 +1,7 @@
---
title: Block and inline tags
tags: gettingStarted
+layout: index.njk
---
## Overview
diff --git a/content/about-commandline.md b/content/about-commandline.md
index 40c4c9a..4e1cc01 100644
--- a/content/about-commandline.md
+++ b/content/about-commandline.md
@@ -1,13 +1,14 @@
---
title: Command-line arguments to JSDoc
tags: gettingStarted
+layout: index.njk
related:
- /about-configuring-jsdoc
---
At its most basic level, JSDoc is used like so:
- /path/to/jsdoc yourSourceCodeFile.js anotherSourceCodeFile.js ...
+ `/path/to/jsdoc yourSourceCodeFile.js anotherSourceCodeFile.js ...`
where `...` are paths to other files to generate documentation for.
diff --git a/content/about-configuring-default-template.md b/content/about-configuring-default-template.md
index 107825f..31e7c6b 100644
--- a/content/about-configuring-default-template.md
+++ b/content/about-configuring-default-template.md
@@ -1,6 +1,7 @@
---
title: Configuring JSDoc's default template
tags: gettingStarted
+layout: index.njk
related:
- /about-configuring-jsdoc
---
diff --git a/content/about-configuring-jsdoc.md b/content/about-configuring-jsdoc.md
index 759e5e0..3c1b4c5 100644
--- a/content/about-configuring-jsdoc.md
+++ b/content/about-configuring-jsdoc.md
@@ -1,6 +1,7 @@
---
title: Configuring JSDoc with a configuration file
tags: gettingStarted
+layout: index.njk
related:
- /about-commandline
- /about-plugins
diff --git a/content/about-getting-started.md b/content/about-getting-started.md
deleted file mode 100644
index 121efd8..0000000
--- a/content/about-getting-started.md
+++ /dev/null
@@ -1,85 +0,0 @@
----
-title: Getting Started with JSDoc 3
-tags: gettingStarted
----
-
-## Getting started
-
-JSDoc 3 is an API documentation generator for JavaScript, similar to Javadoc or phpDocumentor. You
-add documentation comments directly to your source code, right alongside the code itself. The JSDoc
-tool will scan your source code and generate an HTML documentation website for you.
-
-## Adding documentation comments to your code
-
-JSDoc's purpose is to document the API of your JavaScript application or library. It is assumed that
-you will want to document things like modules, namespaces, classes, methods, method parameters, and
-so on.
-
-JSDoc comments should generally be placed immediately before the code being documented. Each comment
-must start with a `/**` sequence in order to be recognized by the JSDoc parser. Comments beginning
-with `/*`, `/***`, or more than 3 stars will be ignored. This is a feature to allow you to suppress
-parsing of comment blocks.
-
-::: example "The simplest documentation is just a description"
-
-```js
-/** This is a description of the foo function. */
-function foo() {
-}
-```
-:::
-
-Adding a description is simple—just type the description you want in the documentation comment.
-
-Special "JSDoc tags" can be used to give more information. For example, if the function is a
-constructor for a class, you can indicate this by adding a `@constructor` tag.
-
-::: example "Use a JSDoc tag to describe your code"
-
-```js
-/**
- * Represents a book.
- * @constructor
- */
-function Book(title, author) {
-}
-```
-:::
-
-More tags can be used to add more information. See the [home page][block-tags] for a complete list
-of tags that are recognized by JSDoc 3.
-
-::: example "Adding more information with tags"
-
-```js
-/**
- * Represents a book.
- * @constructor
- * @param {string} title - The title of the book.
- * @param {string} author - The author of the book.
- */
-function Book(title, author) {
-}
-```
-:::
-
-[block-tags]: /#block-tags
-
-## Generating a website
-
-Once your code is commented, you can use the JSDoc 3 tool to generate an HTML website from your
-source files.
-
-By default, JSDoc uses the built-in "default" template to turn the documentation into HTML. You can
-edit this template to suit your own needs or create an entirely new template if that is what you
-prefer.
-
-::: example "Running the documentation generator on the command line"
-
-```
-jsdoc book.js
-```
-:::
-
-This command will create a directory named `out/` in the current working directory. Within that
-directory, you will find the generated HTML pages.
diff --git a/content/about-including-package.md b/content/about-including-package.md
index e973a54..d7bc504 100644
--- a/content/about-including-package.md
+++ b/content/about-including-package.md
@@ -1,6 +1,7 @@
---
title: Including a Package File
tags: gettingStarted
+layout: index.njk
---
Package files contain information that can be useful for your project's documentation, such as
diff --git a/content/about-including-readme.md b/content/about-including-readme.md
index 3e90d22..4509904 100644
--- a/content/about-including-readme.md
+++ b/content/about-including-readme.md
@@ -1,6 +1,7 @@
---
title: Including a README File
tags: gettingStarted
+layout: index.njk
---
There are two ways to incorporate a `README` file into your documentation:
diff --git a/content/about-license-jsdoc3.md b/content/about-license-jsdoc3.md
index 070f5eb..c654f8c 100644
--- a/content/about-license-jsdoc3.md
+++ b/content/about-license-jsdoc3.md
@@ -1,6 +1,7 @@
---
title: License
tags: gettingStarted
+layout: index.njk
---
JSDoc is free software, licensed under the [Apache License, Version 2.0][apache-license]. Commercial
diff --git a/content/about-namepaths.md b/content/about-namepaths.md
index ed955af..cbb40d5 100644
--- a/content/about-namepaths.md
+++ b/content/about-namepaths.md
@@ -1,13 +1,12 @@
---
title: Using namepaths with JSDoc
tags: gettingStarted
+layout: index.njk
related:
- /about-block-inline-tags
- /tags-inline-link
---
-## Namepaths in JSDoc
-
When referring to a JavaScript variable that is elsewhere in your documentation, you must provide a unique identifier that maps to that variable. A namepath provides a way to do so and disambiguate between instance members, static members and inner variables.
::: example "Basic Syntax Examples of Namepaths in JSDoc"
diff --git a/content/about-plugins.md b/content/about-plugins.md
index f1f5612..e882063 100644
--- a/content/about-plugins.md
+++ b/content/about-plugins.md
@@ -1,6 +1,7 @@
---
title: About JSDoc plugins
tags: gettingStarted
+layout: index.njk
---
## Creating and Enabling a Plugin
diff --git a/content/about-tutorials.md b/content/about-tutorials.md
index 981d32b..0d46a55 100644
--- a/content/about-tutorials.md
+++ b/content/about-tutorials.md
@@ -1,6 +1,7 @@
---
title: Tutorials
tags: gettingStarted
+layout: index.njk
---
JSDoc allows you to include tutorials alongside your API documentation. You can use this feature to
diff --git a/content/data/redirects.yaml b/content/data/redirects.yaml
index 0a81550..12f7f3d 100644
--- a/content/data/redirects.yaml
+++ b/content/data/redirects.yaml
@@ -6,4 +6,4 @@ redirects:
- from: /tags-link
to: /tags-inline-link
- from: /tags-method
- to: /tags-function
+ to: /tags-function
\ No newline at end of file
diff --git a/content/howto-amd-modules.md b/content/howto-amd-modules.md
index 53f4ea6..f390dfb 100644
--- a/content/howto-amd-modules.md
+++ b/content/howto-amd-modules.md
@@ -1,5 +1,6 @@
---
title: AMD Modules
+layout: index.njk
related:
- /about-namepaths
- /tags-exports
diff --git a/content/howto-commonjs-modules.md b/content/howto-commonjs-modules.md
index 874fb7d..337680a 100644
--- a/content/howto-commonjs-modules.md
+++ b/content/howto-commonjs-modules.md
@@ -1,5 +1,6 @@
---
title: CommonJS Modules
+layout: index.njk
related:
- /about-namepaths
- /tags-exports
diff --git a/content/howto-es2015-classes.md b/content/howto-es2015-classes.md
index 88f7832..ee66284 100644
--- a/content/howto-es2015-classes.md
+++ b/content/howto-es2015-classes.md
@@ -1,5 +1,6 @@
---
title: ES 2015 Classes
+layout: index.njk
related:
- /tags-augments
---
diff --git a/content/howto-es2015-modules.md b/content/howto-es2015-modules.md
index 8ed89bc..5d60038 100644
--- a/content/howto-es2015-modules.md
+++ b/content/howto-es2015-modules.md
@@ -1,5 +1,6 @@
---
title: ES 2015 Modules
+layout: index.njk
related:
- /about-namepaths
- /tags-module
diff --git a/content/includes/index.njk b/content/includes/index.njk
index 52138d4..6f1cd92 100644
--- a/content/includes/index.njk
+++ b/content/includes/index.njk
@@ -9,16 +9,14 @@
{%- endmacro -%}
{%- macro generateSection(tocSection) -%}
-
+
{%- for item in collections[tocSection.generated] | sortTags -%}
{%- set tagName = item.data.tag -%}
- -
+
-
{{ formatTag(tagName, tocSection.generated) }}
- {{ synonyms(item, tocSection.generated) }}
-
- - {{ item.data.description }}
+
{%- endfor -%}
-
+
{%- endmacro -%}
{%- macro renderSection(tocSection) -%}
@@ -26,30 +24,44 @@
{%- if tocSection.generated -%}
{{ generateSection(tocSection) }}
{%- else -%}
-
+
- {%- endif -%}
-{%- endmacro -%}
-
-{%- macro synonyms(item, tagType) -%}
- {%- if item.data.synonyms -%}
- {%- set comma = joiner(', ') -%}
- (synonyms: {% for synonym in item.data.synonyms -%}
- {{ comma() }}{{ formatTag(synonym, tagType) -}}
- {%- endfor -%})
+
{%- endif -%}
{%- endmacro -%}
{%- block content -%}
- {%- for tocSection in toc -%}
- {{- renderSection(tocSection) -}}
- {%- endfor -%}
+ {% if title -%}
+ {{ title }}
+ {%- endif %}
+
+ {%- block synonyms -%}
+ {%- if synonyms | length -%}
+ Synonyms
+
+ {% for synonym in synonyms -%}
+ {{ synonym }}
+ {%- endfor %}
+
+ {%- endif -%}
+ {%- endblock -%}
+
+ {{ content | safe }}
+
+ {%- if related | length -%}
+ {%- set relatedLinks = related | relatedList(collections) -%}
+
+
+ {%- endif -%}
+
- Fork me on GitHub
+ Fork me on
GitHub
{% endblock %}
diff --git a/content/includes/layout.njk b/content/includes/layout.njk
index 1fae0d6..44e58df 100644
--- a/content/includes/layout.njk
+++ b/content/includes/layout.njk
@@ -5,6 +5,7 @@
{% block meta -%}
+
{% if keywords -%}
{%- endif %}
@@ -25,39 +26,29 @@
-
-
- {% if title -%}
- {{ title }}
- {%- endif %}
-
- {%- block synonyms -%}
- {%- if synonyms | length -%}
- Synonyms
-
- {% for synonym in synonyms -%}
- {{ synonym }}
- {%- endfor %}
-
- {%- endif -%}
- {%- endblock -%}
- {%- block content -%}
- {{ content | safe }}
- {%- endblock -%}
+
+
- {%- if related | length -%}
- {%- set relatedLinks = related | relatedList(collections) -%}
-
-
- {%- endif -%}
+
+
-
+
+ {%- block content -%}
+
+ {%- endblock -%}
+
+
+
+ {%- block script -%}
+
+
+
+ {%- endblock -%}