Files
detekt/docs/search.json
Matthew Haughton e3d3caef5b Publish detekt-api docs to the detekt documentation site (#1615)
* Don't link to docs that don't exist

* Add generateDocumentation task to documentation task group

* Only process KDoc for detekt-api

* Generate empty javadoc artifacts

* Link documentation to JDK 8

* Publish detekt-api docs to docs site

* Use relative URLs when linking internally in docs

Since KDoc output is in a subfolder in the pages directory, previous
assumptions about how to access static resources no longer hold. Instead
it's necessary to use relative URLs which will resolve to the correct
URL regardless of whether the site is hosted locally or on GitHub pages.

* Don't remove slashes within generated URL

Pages in subfolders need the slashes within the URL to properly specify the
folder path.
2019-05-10 03:25:01 +02:00

34 lines
651 B
JSON

---
title: search
layout: none
search: exclude
---
[
{% for page in site.pages %}
{% unless page.search == "exclude" %}
{
"title": "{{ page.title | escape }}",
"tags": "{{ page.tags }}",
"keywords": "{{page.keywords}}",
"url": "{{ page.url }}",
"summary": "{{page.summary | strip }}"
}
{% unless forloop.last and site.posts.size < 1 %},{% endunless %}
{% endunless %}
{% endfor %}
{% for post in site.posts %}
{
"title": "{{ post.title | escape }}",
"tags": "{{ post.tags }}",
"keywords": "{{post.keywords}}",
"url": "{{ post.url | remove: "/" }}",
"summary": "{{post.summary | strip }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
]