1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-18 00:02:21 +08:00
Commit Graph

205 Commits

Author SHA1 Message Date
Brad King
41415dcdf5 ci: Do not linkcheck $project.sourceforge.net URLs
These URLs are expected to be stable.  Reduce load on SF infrastructure.
2025-07-10 10:34:19 -04:00
Brad King
8071304f2e Configure CMake itself with policies through CMake 4.0 2025-07-02 09:42:26 -04:00
Hirofumi Nakamura
514135f563 Renesas: Add support for Renesas compilers
- CC-RX for RX architecture
- CC-RL for RL78 architecture
- CC-RH for RH850 architecture

Closes: #26880
2025-05-28 09:22:38 -04:00
Brad King
1b491dc4cb ci: Do not linkcheck www.gnu.org URLs
These URLs are expected to be stable.  Reduce load on GNU infrastructure.
2025-05-06 08:59:47 -04:00
Brad King
124b09f055 Merge topic 'fix-footnote-css'
097d8fa7a5 Help: Fix overlapping text in footnotes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10690
2025-04-22 09:18:06 -04:00
Matthew Woehlke
097d8fa7a5 Help: Fix overlapping text in footnotes
In commit 038f4c12e3 (Utilities/Sphinx: Add hanging indent to version
notes, 2023-03-14, v3.27.0-rc1~322^2) we tweaked version notes to
improve readability. However, due to the way footnotes work, this
resulted in overlapping text elements when a footnote consists of a
version note. Adjust the styling to correct this issue.
2025-04-21 15:40:08 -04:00
Alex Turbov
9784834b4c Help: Use *.rst extension for included files
So, editor(s) can correctly highlight the RST syntax in the included files.
2025-04-14 03:07:46 +04:00
Kitware Robot
1772622772 LICENSE: Replace references to Copyright.txt with LICENSE.rst
```
git grep -lz 'Copyright.txt or https://cmake.org/licensing ' |
  while IFS= read -r -d $'\0' f ; do
    sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / {
              s/Copyright.txt/LICENSE.rst/
            }' "$f" ; done
```
2025-03-03 10:43:35 -05:00
Brad King
67b6964efa Merge branch 'backport-license-rst' (early part) into license-rst 2025-03-03 10:42:50 -05:00
Kitware Robot
de273b2e11 LICENSE: Replace references to Copyright.txt with LICENSE.rst
```
git grep -lz 'Copyright.txt or https://cmake.org/licensing ' |
  while IFS= read -r -d $'\0' f ; do
    sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / {
              s/Copyright.txt/LICENSE.rst/
            }' "$f" ; done
```
2025-03-03 09:56:07 -05:00
Brad King
3035ee4ff3 CMake: De-duplicate extraction of copyright line from license file 2025-03-03 08:59:09 -05:00
Brad King
3c175b5f2c ci: Tell linkcheck to tolerate redirect to versioned variant 2025-02-23 09:15:47 -05:00
Nikita Nemkin
cd597fe7c0 Utilities/Sphinx: Update update_versions.py to work with 4.x versions
The regex that extracts versions from git tags needs an update.
Otherwise it will ignore future v4.x.x tags.

Also improve documentation.
2025-02-14 09:45:47 -05:00
Brad King
f8db82ba81 Configure CMake itself with policies through CMake 3.31 2025-02-05 14:21:39 -05:00
Nikita Nemkin
3822e95aee Help: Add responsive layout for small screens
These changes activate only on small screens, where "small" is defined
as <=760px, i.e. anything smaller than iPad Mini.

* Turn the sidebar into a popup (on the right) and add a hamburger
  button in the header to show it.
* Split the header and footer into two lines, make the header sticky.
* Remove the prev/next links from the header.
* Put the search box first in the sidebar.
* Disable horizontal scroll of the page, enable individual scrolling
  for h1, table. (Code blocks already have it).
* Allow line breaking of overly long words in the document body.
* Adjust various margins.

The sidebar popup works without JavaScript (using the "checkbox hack"),
but a bit of JavaScript is added to enable automatic closing on Esc,
on a link click and on document navigation.
2025-02-02 23:33:17 +05:00
Nikita Nemkin
bf9ccc8427 Help: Theme improvements
* Push the footer to the bottom of the page (for short pages).
* Remove the link from the sidebar "Table of Contents" header.
* Remove text justification from TOCs and tables.
* Adjust logo position in the header.
* Restructure the navigation bar from
    CMake >> [version] Documentation >> Page
  to
    CMake [version] >> Documentation >> Page
2025-02-02 23:33:17 +05:00
Nikita Nemkin
718043b540 Help: Convert some literal blocks into tables and lists
Also, ensure that header-less tables have a top border in cmake.css.
2025-01-31 12:23:29 -05:00
Brad King
914d580a4f Utilities/Sphinx: Ignore warning in generated texinfo documentation 2025-01-31 12:23:29 -05:00
Brad King
21befcd8aa ci: Do not linkcheck web.archive.org URLs
Avoid unnecessary use of Internet Archive resources.
Their URLs are meant to be stable.
2024-12-18 09:10:26 -05:00
Brad King
5fa7f75577 ci: Do not linkcheck www.tasking.com URLs
The server's certificate fails verification.
2024-10-30 05:39:11 -04:00
Brad King
0b2be5c0bf ci: linkcheck_ignore www.intel.com URLs more precisely 2024-10-30 05:38:00 -04:00
Brad King
8779b1ad28 Merge branch 'backport-ci-fedora-41' into ci-fedora-41 2024-10-26 06:02:18 -04:00
Brad King
f60b4c553e Utilities/Sphinx: Tell linkcheck to not treat timeouts as broken
Sphinx 7.3 warns:

    sphinx/builders/linkcheck.py:86: RemovedInSphinx80Warning:
    The default value for 'linkcheck_report_timeouts_as_broken'
    will change to False in Sphinx 8, ...

Configure that behavior explicitly.
2024-10-26 06:01:09 -04:00
Brad King
3a96346a3f Configure CMake itself with policies through CMake 3.30 2024-10-10 09:32:06 -04:00
Brad King
115425e68c Configure CMake itself with policies through CMake 3.29 2024-06-05 13:24:36 -04:00
Axel Huebl
b07c637e42 FindOpenMP: Add option to control OpenMP runtime with MSVC
The MSVC compiler's `-openmp` flag accepts `:{experimental,llvm}`
values.  Add an option to specify one.

Closes: #25570
2024-05-01 08:25:14 -04:00
Brad King
dc7fceb200 Utilities/Sphinx: Ignore warning in generated texinfo documentation 2024-04-24 16:42:59 -04:00
Brad King
ba6f3f25ee Configure CMake itself with policies through CMake 3.28 2024-02-06 17:07:16 -05:00
Brad King
cdd741ebf9 Merge branch 'backport-ci-fedora-39' into ci-fedora-39 2023-11-17 11:35:41 -05:00
Brad King
40552722c9 Utilities/Sphinx: Fix python string literal syntax warning
Python 3.12 started warning:

    conf.py:35: SyntaxWarning: invalid escape sequence '\.'

Use a raw string literal instead.
2023-11-17 09:58:21 -05:00
Brad King
066ae7051c Merge topic 'doc-deprecated-hanging-indent'
b553ac4c2f Utilities/Sphinx: Add hanging indent to deprecation notes

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8976
2023-11-17 08:11:55 -05:00
Brad King
b553ac4c2f Utilities/Sphinx: Add hanging indent to deprecation notes
Extend commit 038f4c12e3 (Utilities/Sphinx: Add hanging indent to
version notes, 2023-03-14, v3.27.0-rc1~322^2) to cover `deprecated`
directives.
2023-11-16 14:27:54 -05:00
Brad King
d865d5bce1 ci: Do not linkcheck www.intel.com URLs
They fail with a 403 Client Error, perhaps due to our once-per-day
request being classified as scraping.
2023-11-06 12:53:35 -05:00
Brad King
be045c7c16 Configure CMake itself with policies through CMake 3.27 2023-10-03 17:21:47 -04:00
Brad King
3f684b123d Utilities/Sphinx: Allow linkcheck redirect for our get-involved page
The `cmake.org/get-involved` URL is more semantically meaningful than
the `cmake.org/documentation` URL to which the former now redirects as
an implementation detail.
2023-09-28 09:36:23 -04:00
Brad King
9ce6ed1e00 Merge topic 'doc-search-names'
094c5a089d Utilities/Sphinx: Restore html search index link anchors

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8628
2023-07-14 08:35:48 -04:00
Brad King
094c5a089d Utilities/Sphinx: Restore html search index link anchors
Since commit 37e015d4a6 (Utilities/Sphinx: Refactor Sphinx reference
recording, 2023-03-08, v3.27.0-rc1~342^2~1), anchors in links to cmake
domain objects generated in html search results were missing their
object type prefix, and thus did not link to the object.

Restore our `get_objects` implementation's second tuple entry to what we
used prior to that commit.  This matches what Sphinx's builtin python,
rst, and javascript modes do.

Fixes: #25067
2023-07-13 12:16:39 -04:00
Brad King
f7bf4dc871 Merge topic 'sphinx-docutils-warning'
0c14b6085a Utilities/Sphinx: Fix warning from docutils 0.18.1+

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8578
2023-06-23 10:46:30 -04:00
Brad King
8801ce34c1 Merge topic 'sphinx-docutils-warning' into release-3.27
0c14b6085a Utilities/Sphinx: Fix warning from docutils 0.18.1+

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8578
2023-06-23 10:46:29 -04:00
Brad King
080e269f62 Merge topic 'sphinx-domain-parallel'
ac89f9ec86 Merge branch 'backport-3.26-sphinx-domain-parallel'
f546ebfecc Utilities/Sphinx: Fix parallel documentation builds
4e11859e0e Utilities/Sphinx: Fix parallel documentation builds for 3.26

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: technocolordreamcoder <j_grant5@u.pacific.edu>
Merge-request: !8575
2023-06-23 10:40:53 -04:00
Henry Schreiner
0c14b6085a Utilities/Sphinx: Fix warning from docutils 0.18.1+
Also might fix 0.18.0 exactly, which apparently forgot to add the
backward compat shim.
2023-06-22 10:48:50 -04:00
Matthew Woehlke
f546ebfecc Utilities/Sphinx: Fix parallel documentation builds
In commit d78bfa1ecc (Utilities/Sphinx: support cmakedomain running in
parallel, 2022-10-24, v3.26.0-rc1~495^2) we declared the domain as
parallel-safe without actually implementing the required
`merge_domaindata` method.  Since then, commit 37e015d4a6
(Utilities/Sphinx: Refactor Sphinx reference recording) changed how we
store resolved references, such that our separate fix for 3.26 does not
work in 3.27+.

While at it, correct a crusty comment that was overlooked during the
aforementioned refactoring.

Issue: #24076
Co-authored-by: Jared Dillard <jared.dillard@gmail.com>
2023-06-22 10:02:43 -04:00
Brad King
6743256b94 Merge topic 'improve-sphinx-check'
528cdc7551 Utilities/Sphinx: Fix some flake8 gripes
4bd1beded4 Utilities/Sphinx: Don't ignore flake8 E402

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8561
2023-06-14 09:12:58 -04:00
Matthew Woehlke
528cdc7551 Utilities/Sphinx: Fix some flake8 gripes
Reorder some imports to better conform to what flake8 wants.
2023-06-13 11:39:48 -04:00
Matthew Woehlke
4bd1beded4 Utilities/Sphinx: Don't ignore flake8 E402
Refactor commit 1f39a3cd1a (Utilities/Sphinx: Restore explicit check for
Sphinx 2.x or later) to avoid needing to suppress flake8 E402. While
ignoring it with respect to the docutils/sphinx imports and the sphinx
version check was correct, the need to disable it for the whole file was
suboptimal.
2023-06-13 11:25:14 -04:00
Brad King
ac4bcefc88 Merge topic 'doc-sphinx-2.x'
1f39a3cd1a Utilities/Sphinx: Restore explicit check for Sphinx 2.x or later
5de805bea2 Utilities/Sphinx: Fix flake8 E124 diagnostic in cmake.py

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8555
2023-06-13 10:48:32 -04:00
Brad King
1f39a3cd1a Utilities/Sphinx: Restore explicit check for Sphinx 2.x or later
Refactoring in commit adbc8c982d (Utilities/Sphinx: Fix flake8 gripes in
cmake.py, 2023-03-13, v3.27.0-rc1~317^2) moved the assertion added by
commit cef51925a4 (Utilities/Sphinx: Require Sphinx 2.x or later,
2023-03-13, v3.27.0-rc1~317^2~2) to after imports, which is too late to
clearly reject older Sphinx versions.
2023-06-12 17:37:13 -04:00
Brad King
5de805bea2 Utilities/Sphinx: Fix flake8 E124 diagnostic in cmake.py 2023-06-12 17:34:25 -04:00
Brad King
1b11f48741 Configure CMake itself with policies through CMake 3.26 2023-06-07 14:32:04 -04:00
Craig Scott
0de00b8b69 Sphinx: Modernize UTF-8 encoding handling when updating CMake.qhp 2023-04-07 18:14:18 +10:00