Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make various improvements to site/build_docs.py #589

Merged
merged 6 commits into from
Dec 21, 2021
Merged

Make various improvements to site/build_docs.py #589

merged 6 commits into from
Dec 21, 2021

Conversation

IRDonch
Copy link

@IRDonch IRDonch commented Dec 20, 2021

Summary

See the individual commits for details. The important commit (the one I started this whole thing for) is the last one; it's also the only commit that affects the output. The rest are just improvements I made along the way.

How to test

Run the script.

Checklist

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.
  • I have updated the license header for each file (see an example below)
# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

Roman Donchenko added 6 commits December 17, 2021 19:01
It seems that Hugo is perfectly capable of creating them by itself.

A positive side effect of this change is that you can now run the script
repeatedly (previously it would complain that the output directory already
exists).
Also, use the actual repository root as the repository root, not the current
directory. Change the variable names accordingly.
Currently, it overwrites files in the actual repo it is run from, which is
inconvenient and dangerous (since any local changes are lost). Make it stage
files in a temporary directory instead.

This requires the `enableGitInfo` setting to be set to `false`, since we no
longer run Hugo in a Git repository. This makes the "Last modified"
information disappear from the generated pages. However, due to the way we
currently generate documentation for old releases, that information is
frequently incorrect anyway (for example:
<https://openvinotoolkit.github.io/datumaro/v0.1.11/docs/contributing/>).
@IRDonch IRDonch requested a review from zhiltsov-max December 20, 2021 14:08
@zhiltsov-max zhiltsov-max merged commit 999ed2d into openvinotoolkit:develop Dec 21, 2021
@IRDonch IRDonch deleted the build-docs-better branch September 9, 2022 22:56
@zhiltsov-max zhiltsov-max mentioned this pull request Sep 12, 2022
7 tasks
zhiltsov-max added a commit to cvat-ai/cvat that referenced this pull request Sep 15, 2022
- Added auth docs in API schema and SDK ApiClient/Config (fixes #1517)
- Added SDK docs with API, SDK and CLI docs
- Added `develop` branch in the docs
- Allowed unauthorized access to `api/docs`, `api/swagger`, `api/schema` endpoints
- Added `--insecure` env var to control host checks in CLI
- Refactored `build_docs.py` (backported openvinotoolkit/datumaro#589)
- Extracted requirements file for site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants