Skip to content

Commit c63115f

Browse files
committed
Documentation for centralized config provider, JSON Relational Duality View and other updates with formatting improvements
1 parent 39bd3a1 commit c63115f

13 files changed

+813
-246
lines changed

Diff for: doc/src/.static/custom.css

+6
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ li div.highlight-default.notranslate, li div.highlight-shell.notranslate, li div
5454
font-size: 11pt;
5555
font-weight: bold;
5656
}
57+
58+
/* Added code to override the default content width in ReadtheDocs and break long words */
59+
.wy-nav-content {
60+
max-width: none;
61+
word-break: break-word;
62+
}

Diff for: doc/src/_ext/constants_table.py

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#------------------------------------------------------------------------------
2+
# Copyright (c) 2024, Oracle and/or its affiliates.
3+
#
4+
# This software is dual-licensed to you under the Universal Permissive License
5+
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
6+
# 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
7+
# either license.
8+
#
9+
# If you elect to accept the software under the Apache License, Version 2.0,
10+
# the following applies:
11+
#
12+
# Licensed under the Apache License, Version 2.0 (the "License");
13+
# you may not use this file except in compliance with the License.
14+
# You may obtain a copy of the License at
15+
#
16+
# https://www.apache.org/licenses/LICENSE-2.0
17+
#
18+
# Unless required by applicable law or agreed to in writing, software
19+
# distributed under the License is distributed on an "AS IS" BASIS,
20+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21+
# See the License for the specific language governing permissions and
22+
# limitations under the License.
23+
#------------------------------------------------------------------------------
24+
25+
#------------------------------------------------------------------------------
26+
# constants_table.py
27+
#
28+
# Defines a directive (constants-table) that creates a table with a specific
29+
# configuration on top of the extended "list-table-with-summary" directive.
30+
#------------------------------------------------------------------------------
31+
32+
from docutils.statemachine import ViewList
33+
34+
import table_with_summary
35+
36+
class ConstantsTable(table_with_summary.ListTableWithSummary):
37+
38+
def run(self):
39+
self.options["summary"] = \
40+
"The first column displays the name of the constant. The " \
41+
"second column displays the value of the constant. The third " \
42+
"column displays the description of the constant."
43+
self.options["header-rows"] = 1
44+
self.options["class"] = ["wy-table-responsive"]
45+
self.options["widths"] = [40, 15, 45]
46+
self.options["width"] = "100%"
47+
headings = ViewList(['* - Constant Name', ' - Value', ' - Description'])
48+
self.content = headings + self.content
49+
return super().run()
50+
51+
def setup(app):
52+
app.add_directive('constants-table', ConstantsTable)

Diff for: doc/src/api_manual/connection.rst

+9-4
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,7 @@ Connection Methods
676676
:class: wy-table-responsive
677677
:align: center
678678
:widths: 10 10 30
679+
:width: 100%
679680
:summary: The first column displays the name of the parameter. The second column displays the data type of the parameter. The third column displays the description of the parameter.
680681

681682
* - Parameter
@@ -842,7 +843,7 @@ Connection Methods
842843
:header-rows: 1
843844
:class: wy-table-responsive
844845
:align: center
845-
:widths: 10 10 20 30
846+
:widths: 10 15 20 25
846847
:summary: The first column displays the Node.js Type. The second
847848
column displays the Database type. The third column displays the
848849
Bind type value. The fourth column displays the notes.
@@ -972,7 +973,7 @@ Connection Methods
972973
:header-rows: 1
973974
:class: wy-table-responsive
974975
:align: center
975-
:widths: 5 10 35
976+
:widths: 10 10 30
976977
:summary: The first column displays the property. The second column
977978
displays the data type of the property. The third column displays
978979
the description of the property.
@@ -1511,7 +1512,8 @@ Connection Methods
15111512
:header-rows: 1
15121513
:class: wy-table-responsive
15131514
:align: center
1514-
:widths: 10 12 45
1515+
:widths: 10 10 30
1516+
:width: 100%
15151517
:summary: The first column displays the parameter. The second column
15161518
displays the data type of the parameter. The third column displays
15171519
the description of the parameter.
@@ -1712,7 +1714,8 @@ Connection Methods
17121714
:header-rows: 1
17131715
:class: wy-table-responsive
17141716
:align: center
1715-
:widths: 10 15 40
1717+
:widths: 10 10 30
1718+
:width: 100%
17161719
:summary: The first column displays the parameter. The second column
17171720
displays the data type of the parameter. The third column displays
17181721
the description of the parameter.
@@ -2257,6 +2260,7 @@ Connection Methods
22572260
:class: wy-table-responsive
22582261
:align: center
22592262
:widths: 10 10 30
2263+
:width: 100%
22602264
:summary: The first column displays the parameter. The second column
22612265
displays the data type of the parameter. The third column displays
22622266
the description of the parameter.
@@ -2814,6 +2818,7 @@ Connection Methods
28142818
:class: wy-table-responsive
28152819
:align: center
28162820
:widths: 10 10 30
2821+
:width: 100%
28172822
:summary: The first column displays the parameter. The second column
28182823
displays the data type of the parameter. The third column displays the
28192824
description of the parameter.

Diff for: doc/src/api_manual/deprecations.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ desupported features are listed first.
1515
:header-rows: 1
1616
:class: wy-table-responsive
1717
:align: center
18-
:widths: 10 25 20
18+
:widths: 20 20 15
1919
:width: 100%
2020
:summary: The first column displays the deprecated API method, property, or constant. The second column displays the node-oracledb version in which the API method, property, or constant was deprecated or desupported. The third column displays the API property, method, or constant to use instead, if applicable.
2121

Diff for: doc/src/api_manual/lob.rst

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ Lob Methods
146146
:class: wy-table-responsive
147147
:align: center
148148
:widths: 15 30
149+
:width: 100%
149150
:summary: The first column displays the parameter. The second column
150151
displays the data type of the parameter. The third column displays
151152
the description of the parameter.

0 commit comments

Comments
 (0)