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

[docs] Remove out-of-date docs, improve header standardization. #24456

Merged
merged 2 commits into from
May 18, 2022

Conversation

ras0219-msft
Copy link
Contributor

@ras0219-msft ras0219-msft commented Apr 28, 2022

I also trimmed trailing whitespace from docs/examples/modify-baseline-to-pin-old-boost.md since I was making semantic edits anyway.

As part of this PR, I've audited all non-helper documentation for mentions of feature flags and experimental behavior to ensure all behavior is correctly categorized.

@JackBoosY JackBoosY added category:documentation To resolve the issue, documentation will need to be updated info:internal This PR or Issue was filed by the vcpkg team. labels Apr 28, 2022
Comment on lines +7 to +9
In the case of Boost, it is unlikely that a user requires all of the 140+ Boost libraries in their project. For the sake of convenience, vcpkg splits Boost into multiple sub-packages broken down to individual libraries. By doing so, users can limit the subset of Boost libraries that they depend on.

If a user wants to install all of the Boost libraries available in vcpkg, they can do so by installing the `boost` meta-package.
If a user wants to install all of the Boost libraries available in vcpkg, they can do so by installing the `boost` meta-package.
Copy link
Member

Choose a reason for hiding this comment

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

How about merge these 2 paragraphs into:

In the case of Boost, it is unlikely that all 140+ Boost libraries are required. vcpkg splits Boost into its individual libraries. For convenience, the boost meta-package can used to install them all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See my below comment.

**What is a meta-package?**
In vcpkg we call meta-packages to ports that by themselves don't install anything but that instead forward installation to another port or ports. The reasons for these meta-packages to exist are plenty: to install different versions of a library depending on platform (like the old OpenSSL port did), to allow for multiple versions to exist in the vcpkg registry at the same time (OpenCV), or to conveniently install/uninstall a catalog of related packages (Boost and Qt).
**What is a meta-package?**
In vcpkg we call meta-packages to ports that by themselves don't install anything but that instead forward installation to another port or ports. The reasons for these meta-packages to exist are plenty: to install different versions of a library depending on platform or to conveniently install/uninstall a catalog of related packages (Boost and Qt).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
In vcpkg we call meta-packages to ports that by themselves don't install anything but that instead forward installation to another port or ports. The reasons for these meta-packages to exist are plenty: to install different versions of a library depending on platform or to conveniently install/uninstall a catalog of related packages (Boost and Qt).
In vcpkg we call ports that don't install anything but forward installation to other port(s) *meta-packages*. Meta-packages:
* allow installation of different versions of a library depending on platform
* conveniently install/uninstall a catalog of related packages (as demonstrated by `boost` and `qt`)

I'm not sure we should be talking about different "versions" here?

(I suggested the bulleted list because I think 'reasons are plenty' just makes it longer without really adding things. Just say what it's for.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See my below comment.


### Step 1: Create a new branch
As described in the versioning documentation. The value that goes in `"builtin-baseline"` is a Git commit in the vcpkg repository's history. Then it stands to reason, that if you want to customize the baseline you should be able to create a new commit with said custom baseline.
As described in the versioning documentation. The value that goes in `"builtin-baseline"` is a git commit in the Microsoft/vcpkg repository's history. If you want to customize the baseline and have control over the vcpkg instance, you can create a new commit with said custom baseline.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
As described in the versioning documentation. The value that goes in `"builtin-baseline"` is a git commit in the Microsoft/vcpkg repository's history. If you want to customize the baseline and have control over the vcpkg instance, you can create a new commit with said custom baseline.
As described in the versioning documentation. The value that goes in `"builtin-baseline"` is a git commit in the microsoft/vcpkg repository's history. If you want to customize the baseline and have control over the vcpkg instance, you can create a new commit with said custom baseline.

I believe the git organization is canonically lowercase?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've lowercased it, but we have an enormous number of mentions that are uppercased; this should be addressed mechanically in a separate PR.


Let's start by creating a new branch to hold our modified baseline.
Let's start by creating a new branch to hold our modified baseline.
Copy link
Member

Choose a reason for hiding this comment

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

These 2 trailing spaces were forcing a line break between this line and the next one. Was eliminating that the intent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, thanks for catching this. I've added a hard break.

@@ -1,10 +1,12 @@
# Overlay triplets example

## Building dynamic libraries on Linux
`vcpkg` comes with many useful officially supported configurations in the box, including dynamic and static libraries for Windows as well as static libraries for MacOS and Linux. There are also a large number of community-supported triplets available, such as Emscripten or Android.
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure I like this added paragraph; if we're selling triplets the concept IMO that should be in the doc talking about what triplets are rather than repeated in a sample?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have reverted changes to this file to better scope this PR.

@ras0219-msft
Copy link
Contributor Author

ras0219-msft commented May 6, 2022

I agree that the existing documentation needs an enormous amount of rewording, but I am trying to scope this PR to:

  1. Directly incorrect information (e.g. experimental/non-experimental, ports mentioned as examples that may no longer be accurate, etc)
  2. Ensuring pages are reasonably correct and accurate at the top (summaries & headers) to help users find the right pages for their situation.

docs/examples/modify-baseline-to-pin-old-boost.md was exceptionally poorly formatted (lots of trailing spaces), so I couldn't stop myself from trimming those.

I would like to avoid adding any more wording changes to this PR. If any existing ones are controversial, I will revert them and addressing them can be delayed until a more involved pass is performed.

@ras0219-msft ras0219-msft requested a review from BillyONeal May 6, 2022 18:43
Copy link
Member

@BillyONeal BillyONeal left a comment

Choose a reason for hiding this comment

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

The brand new parts I had serious comments about have been removed, so LGTM now.

@ras0219-msft ras0219-msft merged commit 1e91cd3 into microsoft:master May 18, 2022
@ras0219-msft ras0219-msft deleted the dev/roschuma/docs branch May 18, 2022 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:documentation To resolve the issue, documentation will need to be updated info:internal This PR or Issue was filed by the vcpkg team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants