Skip to content

Commit 016dc8a

Browse files
committed
Rework expressions
1 parent 991ad67 commit 016dc8a

31 files changed

+832
-805
lines changed

config.toml

+48-10
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,24 @@ defaultContentLanguageInSubdir = false
1616
# Useful when translating.
1717
enableMissingTranslationPlaceholders = true
1818

19+
# Comment out to disable taxonomies in Docsy
1920
disableKinds = ["taxonomy", "taxonomyTerm"]
2021

22+
# You can add your own taxonomies
23+
# [taxonomies]
24+
# tag = "tags"
25+
# category = "categories"
26+
27+
# [params.taxonomy]
28+
# # set taxonomyCloud = [] to hide taxonomy clouds
29+
# taxonomyCloud = ["tags", "categories"]
30+
31+
# # If used, must have same lang as taxonomyCloud
32+
# taxonomyCloudTitle = ["Tag Cloud", "Categories"]
33+
34+
# # set taxonomyPageHeader = [] to hide taxonomies on the page headers
35+
# taxonomyPageHeader = ["tags", "categories"]
36+
2137
# Highlighting config
2238
pygmentsCodeFences = true
2339
pygmentsUseClasses = false
@@ -69,12 +85,21 @@ weight = 1
6985
[markup.goldmark.renderer]
7086
unsafe = true
7187
[markup.highlight]
88+
# See a complete list of available styles at https://xyproto.github.io/splash/docs/all.html
89+
style = "tango"
90+
# Uncomment if you want your chosen highlight style used for code blocks without a specified language
91+
# guessSyntax = "true"
7292
guessSyntax = "false"
7393

7494
# Everything below this are Site Params
7595

96+
# Comment out if you don't want the "print entire section" link enabled.
97+
[outputs]
98+
section = ["HTML", "print", "RSS"]
99+
76100
[params]
77101
copyright = "Asdine El Hrychy"
102+
# privacy_policy = "https://policies.google.com/privacy"
78103

79104
# First one is picked as the Twitter card image if not set on page.
80105
# images = ["images/project-illustration.png"]
@@ -95,13 +120,17 @@ version = "0.0"
95120

96121
# A link to latest version of the docs. Used in the "version-banner" partial to
97122
# point people to the main doc site.
98-
url_latest_version = "https://genji.dev/docs/"
123+
url_latest_version = "https://genji.dev/"
99124

100125
# Repository configuration (URLs for in-page links to opening issues and suggesting changes)
101126
github_repo = "https://github.com/genjidb/docs"
102127

103128
# Specify a value here if your content directory is not in your repo's root directory
104-
github_subdir = ""
129+
# github_subdir = ""
130+
131+
# Uncomment this if you have a newer GitHub repo with "main" as the default branch,
132+
# or specify a new value if you want to reference another branch in your GitHub links
133+
# github_branch= "main"
105134

106135
# Google Custom Search Engine ID. Remove or comment out to disable search.
107136
# gcs_engine_id = ""
@@ -112,18 +141,23 @@ algolia_docsearch = false
112141
# Enable Lunr.js offline search
113142
offlineSearch = true
114143

144+
# Enable syntax highlighting and copy buttons on code blocks with Prism
145+
prism_syntax_highlighting = false
146+
115147
# User interface configuration
116148
[params.ui]
117-
# Enable to show the side bar menu in its compact state.
118-
sidebar_menu_compact = false
119149
# Set to true to disable breadcrumb navigation.
120150
breadcrumb_disable = false
121-
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
122-
sidebar_search_disable = false
123-
# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top nav bar
124-
navbar_logo = true
125151
# Set to true to disable the About link in the site footer
126152
footer_about_disable = true
153+
# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top nav bar
154+
navbar_logo = true
155+
# Set to true if you don't want the top navbar to be translucent when over a `block/cover`, like on the homepage.
156+
navbar_translucent_over_cover_disable = false
157+
# Enable to show the side bar menu in its compact state.
158+
sidebar_menu_compact = false
159+
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
160+
sidebar_search_disable = false
127161

128162
# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events.
129163
# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set.
@@ -135,9 +169,13 @@ enable = true
135169
yes = 'Glad to hear it! Please <a href="https://github.com/genjidb/docs/issues/new">tell us how we can improve</a>.'
136170
no = 'Sorry to hear that. Please <a href="https://github.com/genjidb/docs/issues/new">tell us how we can improve</a>.'
137171

138-
[params.links]
139-
# End user relevant links. These will show up on left side of footer and in the community page if you have one.
172+
# Adds a reading time to the top of each doc.
173+
# If you want this feature, but occasionally need to remove the Reading time from a single page,
174+
# add "hide_readingtime: true" to the page's front matter
175+
[params.ui.readingtime]
176+
enable = false
140177

178+
[params.links]
141179
# Developer relevant links. These will show up on right side of footer and in the community page if you have one.
142180
[[params.links.developer]]
143181
name ="Twitter"
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
2-
title: "Genji SQL"
2+
title: "Essentials"
33
date: 2020-03-29T18:30:57+04:00
44
weight: 30
55
description: >
66
How to create and manage database structures using Genji SQL syntax
77
---
8-

content/en/docs/genji-sql/data-types.md content/en/docs/essentials/data-types.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ In Genji, _NULL_ is treated as both a value and a type. It represents the absenc
3131
Whenever Genji needs to manipulate data of different types, depending on the situation it will rely on either:
3232

3333
- **explicit conversion**: The source type and destination type are clearly identified. Ex: When inserting data to field with a constraint or when doing a `CAST`.
34-
- **implicit conversion**: Two values of different types need to be compared or used by an operator during the evaluation of an [expression]({{< relref "/docs/genji-sql/expressions.md" >}})
34+
- **implicit conversion**: Two values of different types need to be compared or used by an operator during the evaluation of an [expression]({{< relref "/docs/essentials/expressions.md" >}})
3535

3636
### Explicit conversion
3737

@@ -61,5 +61,5 @@ Here is a table describing type compatibility.
6161

6262
### Implicit conversion
6363

64-
There is only one kind of implicit conversion: `INTEGER` to `DOUBLE`. This usually takes place during the evaluation of an [expression]({{< relref "/docs/genji-sql/expressions" >}}) involving INTEGER and DOUBLE values.
64+
There is only one kind of implicit conversion: `INTEGER` to `DOUBLE`. This usually takes place during the evaluation of an [expression]({{< relref "/docs/essentials/expressions" >}}) involving INTEGER and DOUBLE values.
6565
No other conversion is applied unless it's explicit.

content/en/docs/genji-sql/deleting-documents.md content/en/docs/essentials/deleting-documents.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ To delete only a few documents, use the `WHERE` clause:
2222
DELETE FROM users WHERE age > 13;
2323
```
2424

25-
For every document, the `WHERE` clause evaluates any [expression]({{< relref "/docs/genji-sql/expressions" >}}) that follows, here `age > 13`. If the result is truthy, the document gets deleted.
25+
For every document, the `WHERE` clause evaluates any [expression]({{< relref "/docs/essentials/expressions" >}}) that follows, here `age > 13`. If the result is truthy, the document gets deleted.
2626

2727
The `DELETE` statement doesn't return an error if no document matches the `WHERE` clause, or if there aren't any document in the table.
File renamed without changes.

0 commit comments

Comments
 (0)