Skip to content

docs: add a "pack a Pro artifact" how-to - #1144

Open
mr-cal wants to merge 4 commits into
mainfrom
work/CRAFT-5237/pro-docs
Open

docs: add a "pack a Pro artifact" how-to#1144
mr-cal wants to merge 4 commits into
mainfrom
work/CRAFT-5237/pro-docs

Conversation

@mr-cal

@mr-cal mr-cal commented Jul 22, 2026

Copy link
Copy Markdown
Contributor
  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run make lint && make test?
  • Have you added an entry to the changelog (docs/reference/changelog.rst)?

Adds a pack a Pro artifact how-to document.

The first commit migrates the Rockcraft doc verbatim, the second commit makes it generic.

Used downstream in canonical/snapcraft#6367.

(CRAFT-5237)

Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
Copilot AI review requested due to automatic review settings July 22, 2026 16:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new how-to guide describing how to pack a Pro-compliant artifact using Ubuntu Pro services, integrating it into the documentation navigation and release notes for Craft Application.

Changes:

  • Adds a new how-to entry point page (docs/how-to/pack-a-pro-artifact.rst) that includes shared/common content.
  • Introduces the shared how-to content under docs/common/.../pack-a-pro-artifact.rst and wires it into Sphinx’s build configuration.
  • Updates the how-to toctree and changelog to surface the new guide.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
docs/reference/changelog.rst Adds a changelog entry referencing the new how-to guide.
docs/how-to/pack-a-pro-artifact.rst New how-to wrapper that defines substitutions and includes the shared content.
docs/how-to/index.rst Adds the new how-to page to the how-to guides toctree.
docs/conf.py Excludes the new shared/common how-to source from direct processing, consistent with other common docs.
docs/common/craft-application/how-to-guides/pack-a-pro-artifact.rst Adds the shared how-to content describing Ubuntu Pro-enabled packing.

Comment thread docs/common/craft-application/how-to-guides/pack-a-pro-artifact.rst
Comment thread docs/how-to/pack-a-pro-artifact.rst Outdated
@mr-cal
mr-cal force-pushed the work/CRAFT-5237/pro-docs branch 3 times, most recently from 5ad08ca to 9f34722 Compare July 22, 2026 16:49
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
@mr-cal
mr-cal force-pushed the work/CRAFT-5237/pro-docs branch from 9f34722 to b89d5ad Compare July 22, 2026 16:55
@mr-cal

mr-cal commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Test failures fixed in #1146

@mr-cal
mr-cal marked this pull request as ready for review July 22, 2026 19:56
@mr-cal
mr-cal requested review from a team and lengau as code owners July 22, 2026 19:56
@mr-cal
mr-cal requested review from medubelko and steinbro and removed request for a team and lengau July 22, 2026 19:56
Comment on lines +1 to +2
.. meta::
:description: Pack |an-artifact| that contains extended security patches or meets regulatory compliance needs, powered by Ubuntu Pro.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required:

The advanced substitutions extension doesn't work for meta, unfortunately, so we'll need to move this into the destination page. It's better that way, since there will be many instances where we need to customise it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow this guide to pack |an-artifact| that contains extended security patches or meets
regulatory compliance needs.

.. Split point for downstream docs: Prerequisites onward

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few places in other docs where we use:

Suggested change
.. Split point for downstream docs: Prerequisites onward
.. Begin prerequisites

It's a little bit easier to cite in the include options.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9e89e3a

I followed this method but tweaked it slightly to accomodate the feedback in the downstream PR in snapcraft

Comment thread docs/reference/changelog.rst Outdated
Documentation
=============

- Add a :ref:`how-to-pack-a-pro-artifact` how-to document.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Add a :ref:`how-to-pack-a-pro-artifact` how-to document.
- Add a :ref:`how-to-pack-a-pro-artifact` how-to guide.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mr-cal added 2 commits July 23, 2026 08:23
Signed-off-by: Callahan Kovacs <callahan.kovacs@canonical.com>
@mr-cal
mr-cal requested a review from medubelko July 23, 2026 17:23
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.

4 participants