← Back to issue list

feat: render versions in doc urls

View original Github issue

Metadata

Project
craft-application
Number
#380
Type
pull request
State
merged
Author
tigarmo
Labels
Created
Updated
Closed

Current evaluation

Merged following two approvals and passing CI. Adds util.render_doc_url() and updates Emitter initialization to generate versioned documentation URLs in error messages, resolving issue #368.

Suggested action:

No scores available.

Issue body

This commit adds two new features: - An util.render_doc_url() which creates a versioned url given an url with a `{version}` placeholder and a version value; - Support for passing a rendered base url to the Emitter's init(), so that helper documentation links in error messages can contain the correct version (instead of the default readthedocs "stable" or "latest"). Fixes #368 - [ ] Have you followed the guidelines for contributing? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `tox`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged following two approvals and passing CI. Adds util.render_doc_url() and updates Emitter initialization to generate versioned documentation URLs in error messages, resolving issue #368.
qwen3.6-35b-a3b-mtp-q6 Merged. Implemented util.render_doc_url() and updated Emitter initialization to dynamically generate versioned documentation URLs in error messages, resolving issue #368.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#634 feat: use versioned form of doc urls rockcraft merged Merged. Updates documentation URLs in error messages and rockcraft init templates to use versioned paths. Approved by two reviewers, passed CI, and modified eight files.
71%