Skip to content

Commit

Permalink
Link to license and release notes on GitHub instead of copying the do…
Browse files Browse the repository at this point in the history
…cuments.
  • Loading branch information
teo-tsirpanis committed Feb 28, 2024
1 parent 1b76719 commit 8450d29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<Project>
<Import Project="$(MSBuildThisFileDirectory)eng/common.props" />
<PropertyGroup>
<FsDocsLicenseLink>https://github.com/teo-tsirpanis/Farkle/blob/mainstream/LICENSE.txt</FsDocsLicenseLink>
<FsDocsReleaseNotesLink>https://github.com/teo-tsirpanis/Farkle/blob/mainstream/RELEASE_NOTES.txt</FsDocsReleaseNotesLink>
<RepositoryUrl>https://github.com/teo-tsirpanis/Farkle</RepositoryUrl>
</PropertyGroup>
</Project>
7 changes: 0 additions & 7 deletions eng/build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -305,17 +305,10 @@ let docsOutput = Path.GetFullPath "_site/"
let farkle6Repo = "temp/farkle6"
let farkle6DocsProject = farkle6Repo @@ farkleProject

let moveFileTemporarily src dest =
File.Copy(src, dest, true)
{new IDisposable with member _.Dispose() = File.delete dest}

let cleanDocs _ =
Shell.cleanDir docsOutput

let generateDocs doWatch isRelease =
use __ = moveFileTemporarily "RELEASE_NOTES.md" "docs/release-notes.md"
use __ = moveFileTemporarily "LICENSE.txt" "docs/license.md"

let arguments = [
if doWatch then "watch" else "build"
"--clean"
Expand Down

0 comments on commit 8450d29

Please sign in to comment.