Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a short warning to the doc-frontpage #28791

Merged
merged 1 commit into from
Aug 22, 2018
Merged
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
21 changes: 19 additions & 2 deletions doc/src/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# Julia 1.0 Documentation
```@eval
io = IOBuffer()
release = isempty(VERSION.prerelease)
v = "$(VERSION.major).$(VERSION.minor)"
!release && (v = v*"-$(first(VERSION.prerelease))")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nbd but you can use *=

print(io, """
# Julia $(v) Documentation

Welcome to the documentation for Julia 1.0.
Welcome to the documentation for Julia $(v).

""")
if !release
print(io,"""
!!! warning "Work in progress!"
This documentation is for an unreleased, in-development, version of Julia.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comma after "in-development" feels a little weird but I'm not whether it's actually right or wrong grammatically. Doesn't really matter.

""")
end
import Markdown
Markdown.parse(String(take!(io)))
```

Please read the [release blog post](https://julialang.org/blog/2018/08/one-point-zero) for a general overview of the language and
many of the changes since Julia v0.6. Note that version 0.7 was released alongside
Expand Down