Skip to content

Commit b9c2bdf

Browse files
authored
Synchronize common build scripts and docs template (#258)
Co-authored-by: smaillet <25911635+smaillet@users.noreply.github.com>
1 parent 8429a8f commit b9c2bdf

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

PsModules/CommonBuild/Public/Get-CurrentBuildKind.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ function Get-CurrentBuildKind
3030
$currentBuildKind = [BuildKind]::LocalBuild
3131

3232
# IsAutomatedBuild is the top level gate (e.g. if it is false, all the others must be false)
33+
# This supports identification of APPVEYOR or GitHub explicitly but also supports the common
34+
# `CI` environment variable. Additional build back-ends that don't set the env var therefore,
35+
# would need special handling here.
3336
$isAutomatedBuild = [System.Convert]::ToBoolean($env:CI) `
3437
-or [System.Convert]::ToBoolean($env:APPVEYOR) `
3538
-or [System.Convert]::ToBoolean($env:GITHUB_ACTIONS)
@@ -40,6 +43,12 @@ function Get-CurrentBuildKind
4043
# below, so default to a CiBuild (e.g. not a PR, And not a RELEASE)
4144
$currentBuildKind = [BuildKind]::CiBuild
4245

46+
# Based on back-end type - determine if this is a release or CI build
47+
# The assumption here is that a TAG is pushed to the repo for releases
48+
# and therefore that is what distinguishes a release build. Other conditions
49+
# would need to use other criteria to determine a PR buddy build, CI build
50+
# and release build.
51+
4352
# IsPullRequestBuild indicates an automated buddy build and should not be trusted
4453
$isPullRequestBuild = $env:GITHUB_BASE_REF -or $env:APPVEYOR_PULL_REQUEST_NUMBER
4554

docfx/templates/Ubiquity/public/main.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
@charset "UTF-8";
22

33
/*
4-
Disable display of inherited members. It would be nice if there was a build option to not even generate this noise,
5-
but sadly, there is none so this disables the final render of such things.
4+
Disable display of inherited members. It would be nice if there was a build option
5+
to not even generate this noise, but sadly, there is none so this disables the
6+
final render of such things.
67
*/
78
.typelist.inheritedMembers {
89
display: none
@@ -12,6 +13,15 @@ but sadly, there is none so this disables the final render of such things.
1213
background-color: white
1314
}
1415

16+
/*
17+
For reasons, unknown style sets this to 100% which forces all tables to the available width.
18+
That makes for rather ugly tables and surprising results as the editor doesn't do that for
19+
it's preview mode.
20+
*/
21+
.table {
22+
width: auto
23+
}
24+
1525
/*
1626
Customized Highlight JS theming
1727
The default theming that comes with docfx 'modern' support is rather limited. It doesn't

0 commit comments

Comments
 (0)