-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Format and github pages * Bump Log4NetParse version dependancy * Switch to GITHUB_TOKEN * Copy readme to index in github pages
- Loading branch information
1 parent
e566d2b
commit 9aa6fe3
Showing
7 changed files
with
123 additions
and
13 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,38 @@ | ||
name: Publish docs via GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
- shell: pwsh | ||
# Give an id to the step, so we can reference it later | ||
id: check_file_changed | ||
run: | | ||
# Diff HEAD with the previous commit | ||
$diff = git diff --name-only HEAD^ HEAD | ||
# Check if a file under docs/ or with the .md extension has changed (added, modified, deleted) | ||
$SourceDiff = $diff | Where-Object { $_ -match '^docs/' -or $_ -match '.md$' } | ||
$HasDiff = $SourceDiff.Length -gt 0 | ||
# Set the output named "docs_changed" | ||
Write-Host "::set-output name=docs_changed::$HasDiff" | ||
- name: Copy readme | ||
shell: pwsh | ||
run: | | ||
Copy-Item README.md docs/index.md | ||
- name: Deploy docs | ||
uses: mhausenblas/mkdocs-deploy-gh-pages@master | ||
if: steps.check_file_changed.outputs.docs_changed == 'True' || ${{ github.event_name == 'workflow_dispatch' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,57 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Configuration> | ||
<ViewDefinitions> | ||
<View> | ||
<Name>Chocolatey Logs</Name> | ||
<ViewSelectedBy> | ||
<TypeName>ChocoLog</TypeName> | ||
</ViewSelectedBy> | ||
<TableControl> | ||
<TableHeaders> | ||
<TableColumnHeader> | ||
<Label>Time</Label> | ||
<Width>18</Width> | ||
</TableColumnHeader> | ||
<TableColumnHeader> | ||
<Label>ID</Label> | ||
<Width>5</Width> | ||
</TableColumnHeader> | ||
<TableColumnHeader> | ||
<Label>Exit Code</Label> | ||
<Width>6</Width> | ||
</TableColumnHeader> | ||
<TableColumnHeader> | ||
<Label>Command Line</Label> | ||
</TableColumnHeader> | ||
<TableColumnHeader> | ||
<Label>Log Lines</Label> | ||
</TableColumnHeader> | ||
</TableHeaders> | ||
<TableRowEntries> | ||
<TableRowEntry> | ||
<TableColumnItems> | ||
<TableColumnItem> | ||
<PropertyName>starttime</PropertyName> | ||
<FormatString>{0:MM/dd hh:mm:ss.fff}</FormatString> | ||
</TableColumnItem> | ||
<TableColumnItem> | ||
<PropertyName>id</PropertyName> | ||
</TableColumnItem> | ||
<TableColumnItem> | ||
<PropertyName>exitCode</PropertyName> | ||
</TableColumnItem> | ||
<TableColumnItem> | ||
<ScriptBlock> | ||
[String]::Format("{0}", ($_.cli -replace '"C:\\ProgramData\\chocolatey\\choco.exe"', 'choco')) | ||
</ScriptBlock> | ||
</TableColumnItem> | ||
<TableColumnItem> | ||
<PropertyName>logs</PropertyName> | ||
</TableColumnItem> | ||
</TableColumnItems> | ||
</TableRowEntry> | ||
</TableRowEntries> | ||
</TableControl> | ||
</View> | ||
</ViewDefinitions> | ||
</Configuration> |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
site_name: TODO | ||
repo_url: TODO | ||
site_name: "ChocoLogParse PowerShell Module" | ||
site_url: https://heyitsgilbert.github.io/ChocoLogParse/ | ||
repo_url: https://github.com/HeyItsGilbert/ChocoLogParse | ||
theme: readthedocs | ||
|
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 |
---|---|---|
|
@@ -21,6 +21,6 @@ | |
Version = '1.19.1' | ||
} | ||
'Log4NetParse' = @{ | ||
Version = '0.2.0' | ||
Version = '0.3.0' | ||
} | ||
} |