Skip to content

Commit 4bd14c8

Browse files
committed
Updated readme. Added announcement about new webpage.
1 parent 4a7a025 commit 4bd14c8

File tree

3 files changed

+61
-6
lines changed

3 files changed

+61
-6
lines changed

README.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,45 @@
1-
# Maintainging the utPLSQL Website
1+
# Maintaining the utPLSQL Website
22

3-
**TODO - needs rewrite**
43

5-
The [utPLSQL website](https://utplsql.github.io) is powered by [Jekyll](https://jekyllrb.com/). Which generated HTML when you push a commit to [utplsql.github.io](https://github.com/utPLSQL/utPLSQL.github.io).
4+
The [utPLSQL website](https://utplsql.github.io) is generated using [MkDocs](https://www.mkdocs.org/) and [material theme](https://squidfunk.github.io/mkdocs-material)
5+
[Mike](https://github.com/jimporter/mike) is used for versioning of documentation see also [this page](https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/)
66

7-
This also works in harmony with the gh-pages branches on the various other repository to create a single website. For example the [utpsql](https://github.com/utPLSQL/utPLSQL) repositories [gh-pages](https://github.com/utPLSQL/utPLSQL/tree/gh-pages) branch, is visible at [https://utplsql.github.io/utPLSQL/](https://utplsql.github.io/utPLSQL/).
87

9-
This allows for documentation from each sub repository to host it's own documentation without having to modify the utplsql.github.io repository directly.
8+
## Local setup
109

10+
You will need to have python installed along with pip (see [this page](https://squidfunk.github.io/mkdocs-material/getting-started/))
11+
12+
Once you have pytin and pip installed you will need to install the three components:
13+
```
14+
pip install mkdocs-material
15+
pip install mike
16+
17+
```
18+
19+
Once installed you can use following commands from command line:
20+
21+
`mkdocs serve` - will stat a local server, so you can see the web page generated locally and tet real-time updates to documentation
22+
`mkdocs gh-deploy` - will deploy changed documentation into repository (if you have privileges).
23+
24+
25+
The generated web pages are hen visible at [utplsql.org](https://utPLSQL.org).
26+
27+
Individual project documentation pages are deployed separately from the main organization page.
28+
Each corresponding project repository needs to have its own gh-pages branch.
29+
30+
31+
utPLSQL-framework repository uses `mike` to deploy documentation for specific project version.
32+
33+
Example commands to use are:
34+
35+
- `mike deploy develop` - to deploy documentation for develop branch
36+
- `mike deploy -p develop` - to deploy and push documentation for develop branch
37+
- `mike deploy -p -u v3.1.12 latest` - to deploy and push documentation for version v3.1.12 and update the `latest` alias to point to that version
1138

1239

1340
## How to make an announcement post.
1441

15-
Create a File in the [_posts](https://github.com/utPLSQL/utPLSQL.github.io/tree/master/_posts) directory with the file name of `YYYY-MM-DD-Blog-Post-Name.md`
42+
Create a File in the [docs/_posts](https://github.com/utPLSQL/utPLSQL.github.io/tree/main/docs/_posts) directory with the file name of `YYYY-MM-DD-Blog-Post-Name.md`
1643

1744
This file will be a standard [Markdown file](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet) which can be editing with any text editor although there are many offline and online editors for Markdown.
1845

@@ -27,6 +54,8 @@ The file will also need a YAML Front Matter section at the top of the file.
2754

2855
Look at an existing post if you want an example.
2956

57+
Add new entry pointing to new announcement file to the `nav` section in `mkdocs.yml`
58+
3059
## How to preview site locally
3160

3261
Jekyll will allow you to preview the site locally doing the following:
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: post
3+
title: "New website design"
4+
date: 2022-10-12 23:50:00 +0000
5+
---
6+
7+
8+
Today is [#JoelKallmanDay](https://twitter.com/hashtag/JoelKallmanDay?f=live)
9+
As memorandum of Joel Kallman, on this day utPLSQL launched its new website using different engine.
10+
11+
We have moved away from using [Jekyll](https://jekyllrb.com/) with GitHub Pages to host project and organization sites.
12+
[Jekyll](https://jekyllrb.com/) was simply too much hussle and we used [MkDocs](https://www.mkdocs.org/) to generate offline documentation for utPLSQL that was packaged into the release zip file.
13+
14+
So instead of using two different methods, wei will now use only one. [MkDocs](https://www.mkdocs.org/) is now used for both utPSLQL offline and for online organization and project pages.
15+
16+
Thanks to wonderful [material](https://squidfunk.github.io/mkdocs-material/) theme and [mike](https://github.com/jimporter/mike)(versioning plugin) for MkDocs you may now enjoy the following new features:
17+
18+
- dark & light theme
19+
- better navigation and menu in utPLSQL documentation
20+
- documentation version dropdown
21+
- powerful and fast search within documentation
22+
23+
Hopefully, you will like the changes and enhancements. All the permanent links to old site should still be working.

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
site_url: http://utPLSQL.org/
55
site_name: utPLSQL
6+
remote_branch: mkdocs_site
7+
remote_name: origin
68
site_description: utPLSQL Ultimate Unit Testing Framework for Oracle PL/SQL
79
copyright: Copyright © 2016 - 2022 utPLSQL Team
810
#repo_url: https://github.com/utPLSQL/utPLSQL # disable for offline docs
@@ -72,6 +74,7 @@ plugins:
7274
nav:
7375
- Announcements:
7476
- index.md
77+
- JoelKAllmanDay 2022-10-11-new-website-design.md
7578
- cli version 3.1.9 released: _posts/2022-06-13-cli-version3.1.9-released.md
7679
- maven plugin version3.1.10 released: _posts/2022-06-10-maven-plugin-version3.1.10-released.md
7780
- version 3.1.12 released: _posts/2022-02-24-version3.1.12-released.md

0 commit comments

Comments
 (0)