Skip to content

Commit 7922b8c

Browse files
committed
doc: fix sphinx warnning
1. convert markdown to rst. sphinx need extra plugin to parse markdown, so the current webpage is not expected 2. update some pictures Signed-off-by: Jingru Wang <jingru@synopsys.com>
1 parent 735f91b commit 7922b8c

File tree

70 files changed

+3292
-2572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+3292
-2572
lines changed

doc/documents/arc/arc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ called in entry. You can define your own entry using ``exc_entry_install`` to re
132132

133133
For interrupts, a standard interrupt processing model is shown in the picture below.
134134

135-
.. image:: /pic/interrupt.jpg
135+
.. image:: /pic/interrupt.png
136136
:alt: interrupt and exception processing
137137

138138

doc/documents/board/emsdp.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ There are many peripheral devices available, such as SPI, IIC, UART, GPIO.
8989
Upon these, the |emsdp| offers multiple interfaces for audio, USB, micro-SD card, wireless, ADC, motion sensor, etc.
9090
External hardware modules can also be easily connected to the board though extension interfaces using Pmod Connectors, Arduino, mikro BUS.
9191

92-
.. image:: /pic/emsdp_peripheral_interfaces.jpg
92+
.. image:: /pic/emsdp_peripheral_interfaces.png
9393
:alt: |emsdp| Interfaces
9494

9595
Extensions

doc/documents/board/emsk.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ and communication devices. A Digilent Pmod™ compatible extension board
2727
containing a four-channel 12-bit A/D converter with an IIC interface and an AC
2828
power adapter are included in the package.
2929

30-
.. image:: /pic/emsk_board.jpg
30+
.. image:: /pic/emsk_board.png
3131
:alt: EM Starter Kit Board
3232

3333

@@ -81,7 +81,7 @@ PMOD pins Definition
8181

8282
The location of the pins on the PMOD connectors is shown:
8383

84-
.. image:: /pic/iotdk_pinout_diagram_of_pmod.jpg
84+
.. image:: /pic/iotdk_pinout_diagram_of_pmod.png
8585
:alt: ARC EMSK Pinout Diagram of PMOD
8686

8787
===== ============ ============ ===== ============ ============

doc/documents/board/hsdk.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Toolkit, MetaWare Lite tools or the ARC GNU Tool Chain.
1616
See also this URL for details about the board: `DesignWare ARC HS Development Kit
1717
(HSDK) <https://www.synopsys.com/dw/ipdir.php?ds=arc-hs-development-kit>`_
1818

19-
.. image:: /pic/hsdk_board.jpg
19+
.. image:: /pic/hsdk_board.png
2020
:alt: ARC HS Development Kit
2121

2222

@@ -51,10 +51,10 @@ The ARC HS Development Kit features the following components:
5151
- mikroBUS headers
5252
- PMOD Interfaces (3x), PMOD A and PMOD B (12 pins), PMOD C (6 pins)
5353

54-
.. image:: /pic/hsdk_block_diagram.jpg
54+
.. image:: /pic/hsdk_block_diagram.png
5555
:alt: ARC HSDK Block Diagram
5656

57-
.. image:: /pic/hsdk_chip.jpg
57+
.. image:: /pic/hsdk_chip.png
5858
:alt: ARC HS System on Chip (SoC) Block Diagram
5959

6060
The ARC HS SoC provides the following main features:

doc/documents/board/iotdk.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ I/O functions and fast math (trigonometric) accelerator.
1414
See also this URL for details about the board: `The ARC IoT Development Kit
1515
(IoTDK) <https://www.synopsys.com/dw/ipdir.php?ds=arc_iot_development_kit>`_
1616

17-
.. image:: /pic/iotdk_board.jpg
17+
.. image:: /pic/iotdk_board.png
1818
:alt: DesignWare ARC IoT Development Kit
1919

2020
Components:
@@ -44,10 +44,10 @@ Components:
4444
- PMOD_C (support GPIO and UART)
4545
- Extension header (2x 18 pin)
4646

47-
.. image:: /pic/iotdk_block_diagram.jpg
47+
.. image:: /pic/iotdk_block_diagram.png
4848
:alt: ARC IoTDK Diagram
4949

50-
.. image:: /pic/iotdk_chip.jpg
50+
.. image:: /pic/iotdk_chip.png
5151
:alt: ARC IoTDK Chip Block Diagram
5252

5353
Features:
@@ -92,13 +92,13 @@ The ARC IoT ASIC uses a single 16MHz reference clock from which all the main sys
9292
The clock generation is centralized in the SYSCONFIG module. The SYSCONFIG module implements a single PLL
9393
and integer dividers which allows for accurate fine-tuning of the system clocks to the desired frequency.
9494

95-
.. image:: /pic/iotdk_clock_architecture.jpg
95+
.. image:: /pic/iotdk_clock_architecture.png
9696
:alt: ARC IoTDK Clock Architecture
9797

9898
Configuration switches
9999
----------------------
100100

101-
.. image:: /pic/iotdk_board_switch.jpg
101+
.. image:: /pic/iotdk_board_switch.png
102102
:alt: ARC IoTDK switches
103103

104104
The "On" and "Off" position for all four switches are depicted in the figure above, please see details below for function of each switch:
@@ -126,7 +126,7 @@ Extension Interfaces
126126

127127
To bring your application context around the ARC IoTDK, the following peripheral module standards are supported:
128128

129-
.. image:: /pic/iotdk_extension_interfaces.jpg
129+
.. image:: /pic/iotdk_extension_interfaces.png
130130
:alt: ARC IoTDK Extension Interfaces
131131

132132
**Digilent PMOD™ (2x)**
@@ -137,7 +137,7 @@ is programmable and includes GPIO and SPI for PMOD_B and GPIO and UART for PMOD_
137137
After a reset, all ports are configured as GPIO inputs.
138138
The location of the pins on the PMOD connectors is shown:
139139

140-
.. image:: /pic/iotdk_pinout_diagram_of_pmod.jpg
140+
.. image:: /pic/iotdk_pinout_diagram_of_pmod.png
141141
:alt: ARC IoTDK Pinout Diagram of PMOD
142142

143143
===== ============ ============ ===== ============ ============
@@ -175,7 +175,7 @@ and miscellaneous modules and accessories, See `MikroElektronica <https://www.mi
175175
get the right function assignment on the MikroBUS headers is controlled by software using the
176176
ARDUINO_MUX register
177177

178-
.. image:: /pic/iotdk_mikrobus_headers.jpg
178+
.. image:: /pic/iotdk_mikrobus_headers.png
179179
:alt: ARC IoTDK MikroBUS Headers
180180

181181
**Arduino (1x)**
@@ -186,7 +186,7 @@ The Arduino shield interface is compatible with the Arduino UNO R3 with the foll
186186
the IOREF voltage on the ARC IoTDK board is fixed to 3V3. Note that the ICSP header is also not available.
187187
Most shields do not require this ICSP header as the SPI master interface on this ICSP header is also available on the IO10 to IO13 pins.
188188

189-
.. image:: /pic/iotdk_arduino_shield_interface.jpg
189+
.. image:: /pic/iotdk_arduino_shield_interface.png
190190
:alt: ARC IoTDK Arduino Shield Interface
191191

192192
====== ============ ===================== ============ ============
@@ -219,7 +219,7 @@ IO13 Bit 1 gpio8b_3[1] spi2_clk gpio8b_3[1]
219219
**2x18 Pin Extension Header**
220220

221221

222-
.. image:: /pic/iotdk_2x18_pin_extension_header.jpg
222+
.. image:: /pic/iotdk_2x18_pin_extension_header.png
223223
:alt: ARC IoTDK 2x18 Pin Extension Header
224224

225225

doc/documents/conf.py

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818
#
1919
import sys
2020
import os
21-
import shlex
22-
# import os
23-
# import sys
21+
import sphinx_rtd_theme
2422

2523
sys.path.insert(0, os.path.abspath('..'))
2624
sys.path.insert(0, os.path.abspath('../../'))
25+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'extensions'))
2726

2827

2928
# -- General configuration ------------------------------------------------
@@ -37,9 +36,13 @@
3736
# ones.
3837
extensions = ['sphinx.ext.autodoc',
3938
'sphinx.ext.intersphinx',
39+
'sphinx.ext.extlinks',
4040
'sphinx.ext.todo',
4141
'breathe',
42-
'sphinx.ext.ifconfig']
42+
'sphinx.ext.ifconfig',
43+
'embarc.link-roles',
44+
'embarc.html_redirects',
45+
'sphinx_tabs.tabs']
4346

4447
# Add any paths that contain templates here, relative to this directory.
4548
templates_path = ['_templates']
@@ -50,8 +53,7 @@
5053

5154
# The suffix(es) of source filenames.
5255
# You can specify multiple suffix as a list of string:
53-
#
54-
# source_suffix = ['.rst', '.md']
56+
5557
source_suffix = ['.rst', '.md']
5658

5759
# The master toctree document.
@@ -87,8 +89,13 @@
8789
# The name of the Pygments (syntax highlighting) style to use.
8890
pygments_style = 'sphinx'
8991

92+
# Additional lexer for Pygments (syntax highlighting)
93+
from lexer.DtsLexer import DtsLexer
94+
from sphinx.highlighting import lexers
95+
lexers['DTS'] = DtsLexer()
96+
9097
# If true, `todo` and `todoList` produce output, else they produce nothing.
91-
todo_include_todos = True
98+
todo_include_todos = False
9299

93100

94101
# -- Options for HTML output ----------------------------------------------
@@ -97,7 +104,20 @@
97104
# a list of builtin themes.
98105
#
99106
html_theme = 'sphinx_rtd_theme'
100-
107+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
108+
html_theme_options = {
109+
'prev_next_buttons_location': None
110+
}
111+
if tags.has('release'): # pylint: disable=undefined-variable
112+
is_release = True
113+
docs_title = 'Docs / %s' %(version)
114+
else:
115+
is_release = False
116+
docs_title = 'Docs / Latest'
117+
118+
# The name for this set of Sphinx documents. If None, it defaults to
119+
# "<project> v<release> documentation".
120+
html_title = "embARC OSP Project Documentation"
101121
# Theme options are theme-specific and customize the look and feel of a theme
102122
# further. For a list of options available for each theme, see the
103123
# documentation.
@@ -109,6 +129,31 @@
109129
# so a file named "default.css" will overwrite the builtin "default.css".
110130
html_static_path = ['_static']
111131

132+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
133+
# using the given strftime format.
134+
html_last_updated_fmt = '%b %d, %Y'
135+
136+
# If false, no module index is generated.
137+
html_domain_indices = False
138+
139+
# If false, no index is generated.
140+
html_use_index = True
141+
142+
# If true, the index is split into individual pages for each letter.
143+
html_split_index = True
144+
145+
# If true, links to the reST sources are added to the pages.
146+
html_show_sourcelink = False
147+
148+
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
149+
html_show_sphinx = False
150+
151+
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
152+
# html_show_copyright = tags.has('development')
153+
154+
# If true, license is shown in the HTML footer. Default is True.
155+
html_show_license = True
156+
112157

113158
html_context = {
114159
'css_files': [
@@ -136,7 +181,7 @@
136181
# Additional stuff for the LaTeX preamble.
137182
#
138183
# 'preamble': '',
139-
184+
'preamble': r'\setcounter{tocdepth}{2}',
140185
# Latex figure (float) alignment
141186
#
142187
# 'figure_align': 'htbp',
Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
# Contributor Covenant Code of Conduct
1+
.. _code_guidelines:
22

3-
## Our Pledge
3+
Contributor Covenant Code of Conduct
4+
====================================
5+
6+
Our Pledge
7+
----------
48

59
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
610

7-
## Our Standards
11+
Our Standards
12+
-------------
813

914
Examples of behavior that contributes to creating a positive environment include:
1015

16+
1117
* Using welcoming and inclusive language
1218
* Being respectful of differing viewpoints and experiences
1319
* Gracefully accepting constructive criticism
@@ -16,32 +22,33 @@ Examples of behavior that contributes to creating a positive environment include
1622

1723
Examples of unacceptable behavior by participants include:
1824

25+
1926
* The use of sexualized language or imagery and unwelcome sexual attention or advances
2027
* Trolling, insulting/derogatory comments, and personal or political attacks
2128
* Public or private harassment
2229
* Publishing others' private information, such as a physical or electronic address, without explicit permission
2330
* Other conduct which could reasonably be considered inappropriate in a professional setting
2431

25-
## Our Responsibilities
32+
Our Responsibilities
33+
--------------------
2634

2735
Project maintainers may clarify the standards of acceptable behavior and may take appropriate and fair corrective action in response to any instances of unacceptable behavior.
2836

2937
Project maintainers have the right to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
3038

31-
## Scope
39+
Scope
40+
-----
3241

3342
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
3443

35-
## Enforcement
44+
Enforcement
45+
-----------
3646

3747
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at info@embarc.org [mailto:info@embarc.org]. All complaints will be reviewed and project maintainers will have the right to respond in any manner deemed necessary and appropriate to the circumstances. The project team intends to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
3848

3949
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
4050

51+
Attribution
52+
-----------
4153

42-
## Attribution
43-
44-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [version 1.4][version]
45-
46-
[homepage]: https://www.contributor-covenant.org/
47-
[version]: https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
54+
This Code of Conduct is adapted from the `Contributor Covenant <https://www.contributor-covenant.org/>`_\ , version 1.4, available at `version 1.4 <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>`_

0 commit comments

Comments
 (0)