-
Notifications
You must be signed in to change notification settings - Fork 34
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
first pass at Documenter docs #59
Conversation
Codecov Report
@@ Coverage Diff @@
## master #59 +/- ##
======================================
Coverage 91.3% 91.3%
======================================
Files 9 9
Lines 506 506
======================================
Hits 462 462
Misses 44 44
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Could you also add the required code to .travis.yml
so that the manual is uploaded? Then I'll add the SSH keys.
src/array.jl
Outdated
@@ -715,6 +715,14 @@ function levels! end | |||
|
|||
levels!(A::CategoricalArray, newlevels::Vector) = _levels!(A, newlevels) | |||
|
|||
# copied from just before droplevels docs... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean? Anyway, better remove that comment.
src/array.jl
Outdated
@@ -715,6 +715,14 @@ function levels! end | |||
|
|||
levels!(A::CategoricalArray, newlevels::Vector) = _levels!(A, newlevels) | |||
|
|||
# copied from just before droplevels docs... | |||
""" | |||
droplevels!(A::CategoricalArray) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this docstrings applies to two different methods, make it apply to function droplevels! end
rather than that specific method.
docs/src/using.md
Outdated
|
||
`categorical(A)` - Construct a categorical array with values from `A` | ||
|
||
`compress(A)` - Return a copy of categorical array `A` using the smallest reference type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"smallest possible"?
|
||
This package provides a replacement for [DataArrays.jl](https://github.com/JuliaStats/DataArrays.jl)'s `PooledDataArray` type. | ||
|
||
It offers better performance by getting rid of type instability thanks to the `Nullable` type, which is used to represent missing data. It is also based on a simpler design by only supporting categorical data, which allows offering more specialized features (like ordering of categories). See the [IndirectArrays.jl](https://github.com/JuliaArrays/IndirectArrays.jl) package for a simpler array type storing data with a small number of values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also keep this paragraph and the previous one in README.md so that people can easily know what this is about.
@@ -8,283 +8,10 @@ CategoricalArrays.jl | |||
[![Coveralls](https://coveralls.io/repos/github/JuliaData/CategoricalArrays.jl/badge.svg)](https://coveralls.io/github/JuliaData/CategoricalArrays.jl) | |||
[![Codecov](https://codecov.io/gh/JuliaData/CategoricalArrays.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaData/CategoricalArrays.jl) | |||
|
|||
Tools for working with categorical variables, both with unordered (nominal variables) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep this paragraph so that people can easily know what this is about (even if it's duplicated in the manual).
Will do these edits tomorrow probably. Hope it's helped a bit. |
src/array.jl
Outdated
@@ -580,13 +580,6 @@ Return levels which appear in `A`, in the same order as [`levels`](@ref) | |||
""" | |||
function unique end | |||
|
|||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, so the docstring was here originally? Then please keep it here, and not duplicate it below. What I was asking for was actually the current state... Why did you move it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally I put the droplevels!
docstrings before the droplevels!
function, line 719, rather than before droplevels
, because it didn't get documented (but I copied rather than moved, so that you could see what I'd done). Then in the edit I removed the original.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, sorry, I hadn't spotted the difference between droplevels!
and droplevels
. That's just a typo: please just add the !
in function droplevels end
(the droplevels
function isn't supposed to exist and has no methods currently).
Ok, this is as far as I can go—there's the (Note that the logo is just a placeholder until #2 is closed.) |
2 similar comments
1 similar comment
Thanks! That's really appreciated. |
The build succeeded, but it looks like we need Documenter to generate an |
I think eg Documenter.jl's home page has a HTML Redirect page. |
Or perhaps we should rename overview.md and change the make.jl file accordingly. |
The redirect is a good idea, but the links should work without it. Looks like we indeed need to rename |
OK, the rename fixed the link. |
Fixes #30.