Skip to content

Commit 7139cbc

Browse files
Added _releases folder and notes file for 1.0.0 (#174)
Added _releases folder and release_notes_1.0.0.md (unpopulated), updated _config.yml to reference _releases, and removed extra 'Microsoft' from index.markdown. This PR adds a folder in which we can store the .md files for the release notes; adds the file to the doc tree at the website. Also removes extra 'Microsoft' from index.markdown, and updates _config.yml. Signed-off-by: susanmdouglas [email protected]
1 parent 95089a9 commit 7139cbc

File tree

10 files changed

+86
-15
lines changed

10 files changed

+86
-15
lines changed

RELEASE_STEPS.md

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Release Notes publishing checklist
2+
3+
- Add the release note text inside `_includes/releases` folder as a markdown file, without headers.
4+
As the contents of these files are raw, they can be checked out from external sources (once the docs have
5+
been moved to the extensions repository).
6+
7+
- Add the version details in `_versions`, with the following content and updating the corresponding
8+
version number and the correct filename in the `explanation` attribute (without the `_includes` parent
9+
directory):
10+
11+
```markdown
12+
---
13+
date: 2022-01-01
14+
15+
title: Babelfish 1.0.0
16+
product: Babelfish for PostgreSQL
17+
version: '1.0.0'
18+
19+
components:
20+
-
21+
role: engine
22+
artifact: babelfish
23+
version: 1.0.0
24+
sections:
25+
source:
26+
explanation: "/releases/babelfish-1.0.0.md"
27+
pretty:
28+
artifacts:
29+
babelfish: ''
30+
sections:
31+
source: 'Babelfish 1.0.0'
32+
---
33+
Babelfish for PostgreSQL is open source software that uses the Apache License version 2 (ALv2) and PostgreSQL License. Project source is freely available on [GitHub](https://github.com/babelfish-for-postgresql).
34+
```
35+
36+
The text below the header of this content will be rendered in the right sidebar of the release note page.
37+
38+
39+
> The above bullets will make the releases available in `<url>/versions` permalink and in the documentation
40+
sidebar. The versions route is not accessible from the UI, only by linking. eg: babelfish.org/versions
41+
42+
- Add the release link in the `index.markdown`, to appear in the front page. Be aware of the page name, it will
43+
have the `<artifact>-<version with dots replaced by hyphen>.html` convention:
44+
45+
```markdown
46+
sidebar:
47+
- title: Releases
48+
description: List of Babelfish releases.
49+
links:
50+
- title: Release 1.0.0
51+
url: "/versions/babelfish-1-0-0.html"
52+
...
53+
- title: Have a question?
54+
```

_config.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,18 @@ collections:
8484
faq:
8585
permalink: /docs/:collection/:path/
8686
output: true
87+
versions:
88+
permalink: /versions/:path/
89+
output: true
8790
docs:
8891
permalink: /:collection/:path/
8992
output: true
9093
events:
9194
output: true
9295
artifacts:
9396
output: true
94-
versions:
95-
output: true
97+
98+
9699

97100
paginate: 5
98101
paginate_path: "/blog/page:num/"
@@ -116,6 +119,10 @@ just_the_docs:
116119
faq:
117120
name: FAQ and getting help
118121
nav_fold: true
122+
versions:
123+
name: Releases
124+
nav_fold: true
125+
119126

120127
# Enable or disable the site search
121128
# Supports true (default) or false

_includes/nav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
{%- assign pages_list = sorted_number_ordered_pages | concat: sorted_string_ordered_pages -%}
5959

6060
{%- for node in pages_list -%}
61-
{%- if node.parent == nil and node.url contains '/docs' -%}
61+
{%- if node.parent == nil -%}
6262

6363
{%- unless node.nav_exclude -%}
6464
<li class="nav-list-item{% if page.collection == include.key and page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">

_includes/post_import.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% if page.odfeimport %}
22
<div class="imported-post">
3-
This post was imported from the <i>Open Distro For Elasticsearch</i> blog,
4-
a predecessor project of OpenSearch. Information reflected in this post
5-
may not be current or accurate.
3+
This post was imported from the <i>Babelfish for PostgreSQL</i> blog.
4+
Babelfish is a PostgreSQL extension that supports SQL Server SQL syntax on a PostgreSQL server..
5+
Information in this post may not be current or accurate.
66
</div>
77
{% endif %}

_includes/releases/babelfish-1.0.0.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
_1.0.0 Release description_

_layouts/versions.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
platforms:
1212
linux: "Linux"
1313
sections:
14-
source: 'Build babelfish from source code'
14+
source: 'Babelfish Release'
1515

1616
architecture_order:
1717
- x64

_versions/2021-10-28-babelfish-1.0.markdown renamed to _versions/babelfish-1.0.0.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
2-
date: 2021-10-28
2+
date: 2022-01-04
3+
4+
title: Babelfish 1.0.0
5+
nav_order: 1
36

47
product: Babelfish for PostgreSQL
58
version: '1.0.0'
@@ -11,9 +14,11 @@ components:
1114
version: 1.0.0
1215
sections:
1316
source:
14-
explanation: "downloads/babelfish-source.markdown"
17+
explanation: "/releases/babelfish-1.0.0.md"
1518
pretty:
1619
artifacts:
1720
babelfish: ''
21+
sections:
22+
source: 'Babelfish 1.0.0'
1823
---
1924
Babelfish for PostgreSQL is open source software that uses the Apache License version 2 (ALv2) and PostgreSQL Licence. ALv2 grants you well-understood usage rights; you can use, modify, extend, embed, monetize, resell, and offer Babelfish for PostgreSQL as part of your products and services. The source for the entire project is available on [GitHub](https://github.com/babelfish-for-postgresql) and you're welcome to build from source for customized deployments.

index.markdown

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout_class: sidebar-right
77
body_class: homepage
88
sectionid: homepage
99

10-
meta_description: Babelfish for PostgreSQL is an Apache-2.0 open source project that adds a Microsoft SQL Server-compatible end-point to PostgreSQL to enable your PostgreSQL database to understand the SQL Server wire protocol and commonly used SQL Server commands. With Babelfish, PostgreSQL now understands T-SQL, Microsoft SQL Server's proprietary SQL dialect, and supports the same communications protocol, so your apps that were originally written for SQL Server can now work with PostgreSQL with fewer code changes and without changing database drivers.
10+
meta_description: Babelfish for PostgreSQL is an Apache-2.0 open source project that adds a Microsoft SQL Server-compatible end-point to PostgreSQL to enable your PostgreSQL database to understand the SQL Server wire protocol and commonly used SQL Server commands. With Babelfish, PostgreSQL now understands T-SQL, SQL Server's proprietary SQL dialect, and supports the same communications protocol, so your apps that were originally written for SQL Server can now work with PostgreSQL with fewer code changes and without changing database drivers.
1111

1212
download_ctas:
1313
- os
@@ -46,8 +46,13 @@ secondary:
4646
content: "Check out the [forums](https://discuss.babelfishpgcommunity.dev) to stay informed."
4747

4848
sidebar:
49+
- title: Releases
50+
description: List of Babelfish releases.
51+
links:
52+
- title: Release 1.0.0
53+
url: "/versions/babelfish-1-0-0.html"
4954
- title: Have a question?
50-
description: Do you have a question regarding Babelfish? Maybe you aren’t the first to ask it. Checkout our frequently asked questions (FAQ) to see if your question is already answered. If not, don’t hesitate to ask in the community forums.
55+
description: Do you have a question about Babelfish? You may not be the first person to ask it. Visit our Frequently Asked Questions (FAQ) to see if your question has been answered. If not, don’t hesitate to ask and we'll be glad to answer.
5156
links:
5257
- title: Check out the FAQ
5358
url: /docs/faq/

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "opensearchwebsite",
2+
"name": "babelfishwebsite",
33
"private": true,
44
"dependencies": {
55
"bower": "^1.4.1"

versions/index.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
<ul>
55
{% assign versions = site.versions | sort: 'date' | reverse %}
66
{% for version in versions %}
7-
<li><a href="{{ version.url }}">
8-
{% if version.product == 'odfe' %} Open Distro for Elasticsearch {% else %} OpenSearch {%endif%} {{ version.version }}</a>
9-
</li>
7+
<li><a href="{{ version.url }}"> Babelfish {{ version.version }}</a> </li>
108
{% endfor %}
119
</ul>

0 commit comments

Comments
 (0)