Skip to content

Commit 2b84cab

Browse files
committed
Merge branch 'master' into mb@update
Signed-off-by: louiic <[email protected]>
2 parents 285ec38 + 0666591 commit 2b84cab

File tree

169 files changed

+15421
-10612
lines changed

Some content is hidden

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

169 files changed

+15421
-10612
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,7 @@ dependencies/
8484
perf.data
8585
perf.data.old
8686

87+
# documentation specific
8788
docs/main
8889
docs/build
90+
GitGuide.md

.readthedocs.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.7"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration: docs/conf.py
16+
17+
# Optional but recommended, declare the Python requirements required
18+
# to build your documentation
19+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20+
python:
21+
install:
22+
- requirements: docs/requirements.txt

docs/conf.py

Lines changed: 58 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import docutils
1414
import os
1515
import re
16+
import requests
1617

1718
# -- Project information -----------------------------------------------------
1819

@@ -33,6 +34,7 @@
3334
'sphinx.ext.napoleon',
3435
'sphinx.ext.todo',
3536
'sphinx_external_toc',
37+
'sphinx_copybutton',
3638
'myst_parser',
3739
]
3840

@@ -57,8 +59,6 @@
5759

5860
# The suffix(es) of source filenames.
5961
# You can specify multiple suffix as a list of string:
60-
#
61-
# source_suffix = ['.rst', '.md']
6262
source_suffix = ['.md']
6363

6464
# The master toctree document.
@@ -87,62 +87,58 @@
8787
# The theme to use for HTML and HTML Help pages. See the documentation for
8888
# a list of builtin themes.
8989
#
90-
html_theme = "sphinx_symbiflow_theme"
90+
html_theme = "sphinx_book_theme"
9191

9292
html_theme_options = {
93-
# Repository integration
94-
# Set the repo url for the link to appear
95-
'github_url': 'https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts',
96-
# The name of the repo. If must be set if github_url is set
97-
'repo_name': 'OpenROAD Flow',
98-
# Must be one of github, gitlab or bitbucket
99-
'repo_type': 'github',
100-
101-
# Set the name to appear in the left sidebar/header. If not provided, uses
102-
# html_short_title if defined, or html_title
103-
'nav_title': "OpenROAD Flow",
104-
105-
# A list of dictionaries where each has three keys:
106-
# href: The URL or pagename (str)
107-
# title: The title to appear (str)
108-
# internal: Flag indicating to use pathto (bool)
109-
'nav_links': [
110-
{"title": "Home", "href": "index", "internal": True},
111-
{"title": "The OpenROAD Project", "href": "https://theopenroadproject.org", "internal": False},
112-
],
113-
114-
# Customize css colors.
115-
# For details see link.
116-
# https://getmdl.io/customize/index.html
117-
#
118-
# Primary colors:
119-
# red, pink, purple, deep-purple, indigo, blue, light-blue, cyan,
120-
# teal, green, light-green, lime, yellow, amber, orange, deep-orange,
121-
# brown, grey, blue-grey, white
122-
# (Default: deep-purple)
123-
'color_primary': 'indigo',
124-
# Values: Same as color_primary.
125-
#(Default: indigo)
126-
'color_accent': 'blue',
127-
128-
# Hide the symbiflow links
129-
'hide_symbiflow_links': True,
130-
131-
"html_minify": False,
132-
"html_prettify": True,
133-
"css_minify": True,
134-
"globaltoc_depth": 2,
135-
"table_classes": ["plain"],
136-
"master_doc": False,
93+
"repository_url": "https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts",
94+
"repository_branch": "master",
95+
"show_navbar_depth": 2,
96+
"use_edit_page_button": True,
97+
"use_source_button": True,
98+
"use_issues_button": True,
99+
"use_download_button": True,
100+
101+
# list for more fine-grained ordering of icons
102+
"icon_links": [
103+
{
104+
"name": "The OpenROAD Project",
105+
"url": "https://theopenroadproject.org/",
106+
"icon": "fa-solid fa-globe",
107+
},
108+
{
109+
"name": "Twitter",
110+
"url": "https://twitter.com/OpenROAD_EDA",
111+
"icon": "fa-brands fa-twitter",
112+
},
113+
{
114+
"name": "Email",
115+
"url": "mailto:[email protected]",
116+
"icon": "fa-solid fa-envelope",
117+
},
118+
{
119+
"name": "GitHub",
120+
"url": "https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts",
121+
"icon": "fa-brands fa-github",
122+
},
123+
{
124+
"name": "Stars",
125+
"url": "https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/stargazers",
126+
"icon": "https://img.shields.io/github/stars/The-OpenROAD-Project/OpenROAD-flow-scripts",
127+
"type": "url",
128+
},
129+
],
137130
}
138131

139132
# Add any paths that contain custom static files (such as style sheets) here,
140133
# relative to this directory. They are copied after the builtin static files,
141134
# so a file named "default.css" will overwrite the builtin "default.css".
142-
# html_static_path = ['_static']
135+
136+
def get_file_from_url(url, fname):
137+
r = requests.get(url)
138+
with open(fname, 'wb') as f:
139+
f.write(r.content)
143140

144141
def setup(app):
145-
import os
146142
if not os.path.exists('main'):
147143
os.symlink('..', 'main')
148144
prefix = '(../'
@@ -152,3 +148,16 @@ def setup(app):
152148
lines = lines.replace(prefix, newPath)
153149
with open('index.md', 'wt') as f:
154150
f.write(lines)
151+
152+
url = 'https://raw.githubusercontent.com/The-OpenROAD-Project/OpenROAD/master/docs/contrib/GitGuide.md'
153+
get_file_from_url(url, 'contrib/GitGuide.md')
154+
155+
# edit OpenROAD to OpenROAD-flow-scripts for GitGuide
156+
with open('contrib/GitGuide.md', 'r') as f:
157+
content = f.read()
158+
159+
content = content.replace('user/Build.md', '../index.md#build-or-installing-orfs-dependencies')
160+
content = content.replace('OpenROAD', 'OpenROAD-flow-scripts')
161+
content = content.replace('The-OpenROAD-flow-scripts', 'The-OpenROAD')
162+
with open('contrib/GitGuide.md', 'w') as f:
163+
f.write(content)

docs/contrib/CI.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ navigate Jenkins to access these features are available
2121

2222
- OpenROAD-flow-script-Public [folder]
2323
- `public_tests_all`
24-
- Description: runs flow tests except RTLMP designs. Should finish in
25-
less than three hours.
24+
- Description: runs flow tests that finish in less than three hours.
2625
- Target: master branch.
2726
- `public_tests_all-pr`
28-
- Description: runs flow tests except RTLMP designs. Should finish in
29-
less than three hours.
27+
- Description: runs flow tests that finish in less than three hours.
3028
- Target: all open PRs.
3129
- `publish-results-to-dashboard`
3230
- Description: uploads metrics to dashboard website.
@@ -36,10 +34,9 @@ navigate Jenkins to access these features are available
3634
- Target: master branch.
3735
- OpenROAD-flow-scripts-Private [folder]
3836
- `public_tests_small`
39-
- Description: runs fast flow tests, does not include RTLMP designs.
40-
Should finish in less than one hour.
37+
- Description: runs fast flow tests that finish in less than one hour.
4138
- Target: all branches that are not filed as PR. CI will run for PR
4239
branches on the public side after "Ready to Sync Public" workflow.
4340
- OpenROAD-flow-scripts-All-Tests-Private
44-
- Description: runs flow tests, does not include RTLMP designs.
45-
- Target: secure branches.
41+
- Description: runs flow tests for private branches.
42+
- Target: secure branches.

docs/contrib/CODE_OF_CONDUCT.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,9 @@ the community.
114114

115115
## Attribution
116116

117-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118-
version 2.0, available at
119-
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
117+
This Code of Conduct is adapted from the [Contributor Covenant version 2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct.html).
120118

121119
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122120
enforcement ladder](https://github.com/mozilla/inclusion).
123121

124-
[homepage]: https://www.contributor-covenant.org
125-
126-
For answers to common questions about this code of conduct, see the FAQ at
127-
https://www.contributor-covenant.org/faq. Translations are available at
128-
https://www.contributor-covenant.org/translations.
122+
For answers to common questions about this code of conduct, see the FAQ [here](https://www.contributor-covenant.org/faq). Translations are available [here](https://www.contributor-covenant.org/translations).

docs/contrib/DeveloperGuide.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
- Adding a new design: [Guide](../user/AddingNewDesign.md).
55
- Continuous Integration: [Guide](./CI.md).
66
- How do I update the codebase? There are different ways to update your codebase depending on the method you installed it. We provide detailed instructions in this [guide](../user/FAQS.md).
7+
- How do I contribute? Follow our Git Quickstart guide [here](./GitGuide.md).

docs/contrib/GettingInvolved.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If you find code in our project that does *not* follow this guide, then within e
4141
you edit, follow the style in that file.
4242

4343
Please pay careful attention to the
44-
[tool checklist](DeveloperGuide.md#Tool Checklist) for all code. If you want
44+
[tool checklist](https://openroad.readthedocs.io/en/latest/contrib/DeveloperGuide.html#tool-checklist) for all code. If you want
4545
to add or improve functionality in OpenROAD, please start with the
4646
top-level [app](https://github.com/The-OpenROAD-Project/OpenROAD/) repo. You
4747
can see in the `src` directory that submodules exist pointing to tested

0 commit comments

Comments
 (0)