Skip to content

Commit

Permalink
Merge pull request #929 from Mause/test-pages
Browse files Browse the repository at this point in the history
Add further test pages
  • Loading branch information
Mause authored Aug 7, 2023
2 parents 1e0c6d8 + 56e5d5b commit 4258590
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 17 deletions.
1 change: 1 addition & 0 deletions _plugins/duckdb_functions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def render(context)
Jekyll.logger.info(@tag_name, "Loaded #{functions.size} functions")
filtered = functions.filter { |function| this.select_function(filter_expression, function) }.sort_by { |f| f['name'] }
Jekyll.logger.info(@tag_name, "Filtered down to #{filtered.size} functions with expression: #{filter_expression}")
throw "No functions found for filter: #{filter_expression}" if filtered.empty?

puts generate_index(page, filtered)

Expand Down
17 changes: 0 additions & 17 deletions docs/test.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/test/functions/bitstring.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Bitstring Functions
layout: docu
---

{% duckdb_functions function['category'] == 'bit' %}

7 changes: 7 additions & 0 deletions docs/test/functions/blob.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Blob Functions
layout: docu
---

{% duckdb_functions function['category'] == 'blob' %}

7 changes: 7 additions & 0 deletions docs/test/functions/char.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: String Functions
layout: docu
---

{% duckdb_functions function['category'] == 'string' %}

7 changes: 7 additions & 0 deletions docs/test/functions/date.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Date Functions
layout: docu
---

{% duckdb_functions function['category'] == 'date' %}

7 changes: 7 additions & 0 deletions docs/test/functions/enum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Enum Functions
layout: docu
---

{% duckdb_functions function['category'] == 'enum' %}

7 changes: 7 additions & 0 deletions docs/test/functions/math.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Math Functions
layout: docu
---

{% duckdb_functions function['category'] == 'math' %}

17 changes: 17 additions & 0 deletions docs/test/functions/nested.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Nested Functions
layout: docu
---

## List Functions
{% duckdb_functions function['category'] == 'list' %}

## Map Functions
{% duckdb_functions function['category'] == 'map' %}

## Struct Functions
{% duckdb_functions function['category'] == 'struct' %}

## Union Functions
{% duckdb_functions function['category'] == 'union' %}

20 changes: 20 additions & 0 deletions docs/test/functions/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Overview
layout: docu
---

* <a href="bitstring">Bitstring Functions</a>
* <a href="blob">Blob Functions</a>
* <a href="dateformat">Date Format Functions</a>
* <a href="date">Date Functions</a>
* <a href="datepart">Date Part Functions</a>
* <a href="enum">Enum Functions</a>
* <a href="interval">Interval Functions</a>
* <a href="nested">Nested Functions</a>
* <a href="numeric">Numeric Functions</a>
* <a href="patternmatching">Pattern Matching</a>
* <a href="char">Text Functions</a>
* <a href="time">Time Functions</a>
* <a href="timestamp">Timestamp Functions</a>
* <a href="timestamptz">Timestamp With Time Zone Functions</a>
* <a href="utility">Utility Functions</a>
7 changes: 7 additions & 0 deletions docs/test/functions/utility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Utility Functions
layout: docu
---

{% duckdb_functions function['category'] == 'generic' || function['category'] == 'random' %}

0 comments on commit 4258590

Please sign in to comment.