-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Fix broken links and generate documentation for
vcpkg-gn
(#2…
…4764) * [docs] Fix broken links. Add docs validation pipeline. * [docs][regenerate.ps1] Do not require a README.md in helper ports * [docs] Update validateDocs.yml to point to current main
- Loading branch information
1 parent
f20c7bf
commit 292067a
Showing
16 changed files
with
156 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Doc Validation | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'docs/**' | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: vcpkg | ||
|
||
- name: Checkout Website | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: vcpkg/vcpkg.github.io | ||
ref: '8ee5cacc91b6e017b5e4236940d9f385c1563598' | ||
path: vcpkg.github.io | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- run: npm ci | ||
working-directory: vcpkg.github.io | ||
|
||
- name: Purge existing html files | ||
run: rm -rf en | ||
working-directory: vcpkg.github.io | ||
|
||
# The current navbar embeds a link to integration.md which no longer exists | ||
- name: Ignore navbar | ||
run: echo "" > templates/navbar.html | ||
working-directory: vcpkg.github.io | ||
|
||
- name: Generate Core Pages | ||
run: node scripts/generatePages.js | ||
working-directory: vcpkg.github.io | ||
|
||
- name: Generate Docs Pages | ||
run: node scripts/generateDocs.js ../vcpkg/docs | ||
working-directory: vcpkg.github.io | ||
|
||
- name: Check Links | ||
run: VCPKG_VALIDATE_LINKS_ONLY_DOCS=1 node scripts/validateLinks.js | ||
working-directory: vcpkg.github.io |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# vcpkg-cmake | ||
|
||
This port contains cmake functions for dealing with a GN buildsystem. | ||
|
||
## Example | ||
|
||
```cmake | ||
vcpkg_gn_configure( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
) | ||
vcpkg_gn_install() | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# vcpkg_gn_configure | ||
|
||
The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/ports/vcpkg-gn/vcpkg_gn_configure.md). | ||
|
||
Generate Ninja (GN) targets | ||
|
||
## Usage: | ||
```cmake | ||
vcpkg_gn_configure( | ||
SOURCE_PATH <SOURCE_PATH> | ||
[OPTIONS <OPTIONS>] | ||
[OPTIONS_DEBUG <OPTIONS_DEBUG>] | ||
[OPTIONS_RELEASE <OPTIONS_RELEASE>] | ||
) | ||
``` | ||
|
||
## Parameters: | ||
### SOURCE_PATH (required) | ||
The path to the GN project. | ||
|
||
### OPTIONS | ||
Options to be passed to both the debug and release targets. | ||
Note: Must be provided as a space-separated string. | ||
|
||
### OPTIONS_DEBUG (space-separated string) | ||
Options to be passed to the debug target. | ||
|
||
### OPTIONS_RELEASE (space-separated string) | ||
Options to be passed to the release target. | ||
|
||
## Source | ||
[ports/vcpkg-gn/vcpkg\_gn\_configure.cmake](https://github.com/Microsoft/vcpkg/blob/master/ports/vcpkg-gn/vcpkg_gn_configure.cmake) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# vcpkg_gn_install | ||
|
||
The latest version of this document lives in the [vcpkg repo](https://github.com/Microsoft/vcpkg/blob/master/docs/maintainers/ports/vcpkg-gn/vcpkg_gn_install.md). | ||
|
||
Installs a GN project. | ||
|
||
In order to build a GN project without installing, use [`vcpkg_build_ninja()`]. | ||
|
||
## Usage: | ||
```cmake | ||
vcpkg_gn_install( | ||
SOURCE_PATH <SOURCE_PATH> | ||
[TARGETS <target>...] | ||
) | ||
``` | ||
|
||
## Parameters: | ||
### SOURCE_PATH | ||
The path to the source directory | ||
|
||
### TARGETS | ||
Only install the specified targets. | ||
|
||
Note: includes must be handled separately | ||
|
||
[`vcpkg_build_ninja()`]: vcpkg_build_ninja.md | ||
|
||
## Source | ||
[ports/vcpkg-gn/vcpkg\_gn\_install.cmake](https://github.com/Microsoft/vcpkg/blob/master/ports/vcpkg-gn/vcpkg_gn_install.cmake) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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