-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation for centralized config provider, JSON Relational Dualit…
…y View and other updates with formatting improvements
- Loading branch information
1 parent
39bd3a1
commit c63115f
Showing
13 changed files
with
813 additions
and
246 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#------------------------------------------------------------------------------ | ||
# Copyright (c) 2024, Oracle and/or its affiliates. | ||
# | ||
# This software is dual-licensed to you under the Universal Permissive License | ||
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License | ||
# 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose | ||
# either license. | ||
# | ||
# If you elect to accept the software under the Apache License, Version 2.0, | ||
# the following applies: | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#------------------------------------------------------------------------------ | ||
|
||
#------------------------------------------------------------------------------ | ||
# constants_table.py | ||
# | ||
# Defines a directive (constants-table) that creates a table with a specific | ||
# configuration on top of the extended "list-table-with-summary" directive. | ||
#------------------------------------------------------------------------------ | ||
|
||
from docutils.statemachine import ViewList | ||
|
||
import table_with_summary | ||
|
||
class ConstantsTable(table_with_summary.ListTableWithSummary): | ||
|
||
def run(self): | ||
self.options["summary"] = \ | ||
"The first column displays the name of the constant. The " \ | ||
"second column displays the value of the constant. The third " \ | ||
"column displays the description of the constant." | ||
self.options["header-rows"] = 1 | ||
self.options["class"] = ["wy-table-responsive"] | ||
self.options["widths"] = [40, 15, 45] | ||
self.options["width"] = "100%" | ||
headings = ViewList(['* - Constant Name', ' - Value', ' - Description']) | ||
self.content = headings + self.content | ||
return super().run() | ||
|
||
def setup(app): | ||
app.add_directive('constants-table', ConstantsTable) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.