Doc: Fix gpkg option links#14729
Open
geographika wants to merge 2 commits into
Open
Conversation
rouault
approved these changes
Jun 6, 2026
Collaborator
Author
|
I spoke too soon about a simple fix - this causes: Switching to an include instead. |
Collaborator
Author
rouault
reviewed
Jun 7, 2026
| - .. config:: OGR_SQLITE_CACHE | ||
|
|
||
| see :ref:`Performance hints <target_drivers_vector_sqlite_performance_hints>`. | ||
| increases SQLite’s internal page cache (in MB). |
Member
There was a problem hiding this comment.
short description to also put in gpkg.rst?
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Fixes #10218 by simply copying the options from the SQLite page so the
:ref:s point to the correct location.I tried (and failed) to update the
copy-configdirective to allow for links on the same page. The refs are already resolved pointing to anchors on the the page they are first declared, when copied in https://github.com/OSGeo/gdal/blame/cb541139e8c4a6fdf267fff69b9fd57ee2c373fa/doc/source/_extensions/configoptions.py#L165 so maybe the original RST should be stored and inserted instead. The caching in the function also probably needs to be ignored in some cases.Just to note, this is only an issue for
:ref:in aconfig::which points to a link on the same page, and is then used in:copy-config:. There are no other cases of this currently in the docs apart from the 2 fixed here, so there is probably little value in spending any more time on this.If the
:ref:points to a different page (and is used in:copy-config:(e.g. in the case of `SQLITE_USE_OGR_VFS also on the gpkg.rst page) then there is no issue.