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

first pass at Documenter docs #59

Merged
merged 4 commits into from
Feb 28, 2017
Merged

first pass at Documenter docs #59

merged 4 commits into from
Feb 28, 2017

Conversation

cormullion
Copy link
Contributor

@cormullion cormullion commented Feb 27, 2017

Fixes #30.

@coveralls
Copy link

coveralls commented Feb 27, 2017

Coverage Status

Coverage remained the same at 91.304% when pulling 0a43437 on cormullion:documenter into a4b9929 on JuliaData:master.

@codecov-io
Copy link

codecov-io commented Feb 27, 2017

Codecov Report

Merging #59 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #59   +/-   ##
======================================
  Coverage    91.3%   91.3%           
======================================
  Files           9       9           
  Lines         506     506           
======================================
  Hits          462     462           
  Misses         44      44
Impacted Files Coverage Δ
src/array.jl 92.6% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a4b9929...48b960e. Read the comment docs.

Copy link
Member

@nalimilan nalimilan left a 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...
Copy link
Member

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)
Copy link
Member

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.


`categorical(A)` - Construct a categorical array with values from `A`

`compress(A)` - Return a copy of categorical array `A` using the smallest reference type
Copy link
Member

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.
Copy link
Member

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)
Copy link
Member

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).

@cormullion
Copy link
Contributor Author

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

"""
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

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).

@cormullion
Copy link
Contributor Author

Ok, this is as far as I can go—there's the gh-pages branch business for you still to do.

(Note that the logo is just a placeholder until #2 is closed.)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.304% when pulling eda7a96 on cormullion:documenter into a4b9929 on JuliaData:master.

2 similar comments
@coveralls
Copy link

coveralls commented Feb 28, 2017

Coverage Status

Coverage remained the same at 91.304% when pulling eda7a96 on cormullion:documenter into a4b9929 on JuliaData:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.304% when pulling eda7a96 on cormullion:documenter into a4b9929 on JuliaData:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 91.304% when pulling 48b960e on cormullion:documenter into a4b9929 on JuliaData:master.

1 similar comment
@coveralls
Copy link

coveralls commented Feb 28, 2017

Coverage Status

Coverage remained the same at 91.304% when pulling 48b960e on cormullion:documenter into a4b9929 on JuliaData:master.

@nalimilan nalimilan merged commit d634683 into JuliaData:master Feb 28, 2017
@nalimilan
Copy link
Member

Thanks! That's really appreciated.

@nalimilan
Copy link
Member

The build succeeded, but it looks like we need Documenter to generate an index.html page? Browsing to https://juliadata.github.io/CategoricalArrays.jl/latest/ failed, but https://juliadata.github.io/CategoricalArrays.jl/latest/using.html works.

@cormullion
Copy link
Contributor Author

I think eg Documenter.jl's home page has a HTML Redirect page.

@cormullion
Copy link
Contributor Author

Or perhaps we should rename overview.md and change the make.jl file accordingly.

@nalimilan
Copy link
Member

The redirect is a good idea, but the links should work without it. Looks like we indeed need to rename overview.md to index.md. Should probably be added to the Documenter manual.

@cormullion cormullion deleted the documenter branch March 1, 2017 11:27
@nalimilan
Copy link
Member

OK, the rename fixed the link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants