Skip to content

Commit

Permalink
Remove symlink between latest and devurl.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Oct 8, 2019
1 parent e56011b commit a4f4a68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

* ![Enhancement][badge-enhancement] In the PDF/LaTeX output, images that are wider than the text are now being scaled down to text width automatically. The PDF builds now require the [adjustbox](https://ctan.org/pkg/adjustbox) LaTeX package to be available. ([#1137][github-1137])

* ![BREAKING][badge-breaking] Documenter no longer creates a symlink between the old `latest` url to specified `devurl`. Make sure to update links in e.g. the package readme. ([#1151][github-1151])

## Version `v0.23.3`

* ![Bugfix][badge-bugfix] Fix file permission error when `Pkg.test`ing Documenter. ([#1115][github-1115])
Expand Down Expand Up @@ -415,6 +417,7 @@
[github-1115]: https://github.com/JuliaDocs/Documenter.jl/pull/1115
[github-1137]: https://github.com/JuliaDocs/Documenter.jl/pull/1137
[github-1147]: https://github.com/JuliaDocs/Documenter.jl/pull/1147
[github-1151]: https://github.com/JuliaDocs/Documenter.jl/pull/1151

[documenterlatex]: https://github.com/JuliaDocs/DocumenterLaTeX.jl
[documentermarkdown]: https://github.com/JuliaDocs/DocumenterMarkdown.jl
Expand Down
8 changes: 0 additions & 8 deletions src/Documenter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,6 @@ function git_push(
devurl_dir = joinpath(dirname, devurl)
gitrm_copy(target_dir, devurl_dir)
Writers.HTMLWriter.generate_siteinfo_file(devurl_dir, devurl)
# symlink "latest" to devurl to preserve links (remove in some future release)
if devurl != "latest"
rm(joinpath(dirname, "latest"); recursive = true, force = true)
@warn(string("creating symlink from `latest` to `$(devurl)` for backwards ",
"compatibility with old links. In future Documenter versions this symlink ",
"will not be created. Please update any links that point to `latest`."))
cd(dirname) do; rm_and_add_symlink(devurl, "latest"); end
end
else
tagged_dir = joinpath(dirname, tag)
gitrm_copy(target_dir, tagged_dir)
Expand Down

0 comments on commit a4f4a68

Please sign in to comment.