Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ The website is a HUGO generated static website: it takes files in markdown forma

Make sure you install Hugo first, the easiest is with the Chocolatey Package Management:

```PowerShell
```powerShell
C:\ > choco install hugo
```

Or you can use WinGet to install Hugo:

```powershell
winget install Hugo.Hugo --source winget
```

Then you can clone this website and run it. But we recommend you first fork the repository under your github account, and clone that fork before so you can create Pull Requests to contribute:

<img src="./static/images/fork-dscommunity-website.png" />
Expand Down Expand Up @@ -126,7 +132,7 @@ master, before pushing to your origin master (your private fork).

Now that you have HUGO installed, and you have the clone of your personal fork locally, you can run the Hugo server.

>_This website requires Hugo version `0.62` or higher. You can see the version_
>_This website requires Hugo version `0.148.2` or higher. You can see the version_
>_by running `hugo version`._

```PowerShell
Expand Down
22 changes: 11 additions & 11 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ trigger:
- master

pr:
autoCancel: 'true'
autoCancel: "true"

pool:
vmImage: 'windows-latest'
vmImage: "windows-latest"

steps:
- checkout: self
displayName: 'Checkout repository'
displayName: "Checkout repository"

- task: PowerShell@2
name: ResourcesJSON
displayName: 'Generating Resources JSON from PSGallery'
displayName: "Generating Resources JSON from PSGallery"
inputs:
filePath: './Get-DscResourceKitInfo.ps1'
filePath: "./Get-DscResourceKitInfo.ps1"
pwsh: true
errorActionPreference: continue

Expand All @@ -31,18 +31,18 @@ steps:
# hugoVersion: 0.135.0

- pwsh: |
$hugoUrl = "https://github.com/gohugoio/hugo/releases/download/v0.136.5/hugo_0.136.5_windows-amd64.zip"
$hugoUrl = "https://github.com/gohugoio/hugo/releases/download/v0.148.2/hugo_0.148.2_windows-amd64.zip"
$outputPath = ".\hugo.zip"
Invoke-WebRequest -Uri $hugoUrl -OutFile $outputPath
Expand-Archive -Path $outputPath -DestinationPath ".\hugo"
displayName: 'Download and Extract Hugo'
displayName: "Download and Extract Hugo"

- pwsh: |
.\hugo\hugo.exe --source "$(System.DefaultWorkingDirectory)" --destination "$(Build.ArtifactStagingDirectory)" --printI18nWarnings --printPathWarnings --logLevel info
displayName: 'Build Hugo Site'
displayName: "Build Hugo Site"

- task: PublishPipelineArtifact@0
displayName: 'Publish Hugo site as artifact'
displayName: "Publish Hugo site as artifact"
inputs:
artifactName: 'dsccommunity'
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: "dsccommunity"
targetPath: "$(Build.ArtifactStagingDirectory)"
3 changes: 1 addition & 2 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
baseURL = "https://dsccommunity.org/"
theme = "dot"
theme = ["dot", "hugo-admonitions"]
googleAnalytics = "UA-144465379-1"

[markup]
Expand Down Expand Up @@ -120,7 +120,6 @@ URL = "https://github.com/dsccommunity/"
icon = "ti-twitter-alt"
URL = "https://twitter.com/dsccommunity"


# # French Language
# [Languages.fr]
# languageName = "Fr"
Expand Down
Loading