Skip to content

Commit

Permalink
Setup for auto deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunoru committed Aug 10, 2016
1 parent df1f2e8 commit a3c1afc
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -7,3 +7,4 @@ actual/
*.log
*.so
*.dll
/docs/site/
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -13,3 +13,4 @@ after_success:
- julia -e 'cd(Pkg.dir("RNG")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
# push coverage results to Codecov
- julia -e 'cd(Pkg.dir("RNG")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia -e 'cd(Pkg.dir("RNG")); Pkg.add("Documenter"); include(joinpath("docs", "make.jl"))'
Binary file added docs/.documenter.enc
Binary file not shown.
8 changes: 6 additions & 2 deletions docs/make.jl
@@ -1,5 +1,9 @@
using Documenter, RNG

makedocs(
modules = [RNG]
makedocs()

deploydocs(
deps = Deps.pip("mkdocs", "python-markdown-math", "mkdocs-material"),
repo = "github.com/sunoru/RNG.jl.git",
osname = "linux"
)
8 changes: 4 additions & 4 deletions docs/mkdocs.yml
Expand Up @@ -32,10 +32,10 @@ pages:
- Manual:
- Bases: man/bases.md
- Benchmark: man/benchmark.md
- PCG: man/pcg.md
- MersenneTwisters: man/mersenne-twisters.md
- Random123: man/random123.md
- Xorshifts: man/xorshifts.md
- Permuted Congruential Generators: man/pcg.md
- Mersenne Twisters: man/mersenne-twisters.md
- Random123 Family: man/random123.md
- Xorshift Family: man/xorshifts.md
- Library:
- RNG: lib/rng.md
- PCG: lib/pcg.md
Expand Down
2 changes: 1 addition & 1 deletion docs/src/lib/mersenne-twisters.md
@@ -1 +1 @@
# Mersenne Twisters
# MersenneTwisters
2 changes: 1 addition & 1 deletion docs/src/lib/pcg.md
@@ -1 +1 @@
# Permuted Congruential Generators
# PCG
1 change: 1 addition & 0 deletions docs/src/lib/rng.md
@@ -0,0 +1 @@
# RNG
7 changes: 3 additions & 4 deletions docs/src/man/bases.md
Expand Up @@ -52,14 +52,13 @@ defined in `Base.Random` still work.
The constructors of all the types of RNG are designed to take `seed` as their parameters, and can be called
with no parameter. For example:

```julia
```jldoctest
julia> using RNG.Xorshifts
julia> r1 = Xorshift128Star(123) # Create a RNG of Xorshift128Star with the seed "123"
RNG.Xorshifts.Xorshift128Star{UInt64}(0x000000003a300074,0x000000003a30004e,0x228e12c83a9b5ed6,false)
julia> r2 = Xorshift128Star() # Use a random value to be the seed.
RNG.Xorshifts.Xorshift128Star{UInt64}(0x784c0ed3d830bb42,0x4d268014e74d6e25,0x4ef0aea8ee776b31,false)
julia> r2 = Xorshift128Star(); # Use a random value to be the seed.
julia> rand(r1) # Generate a number uniformly distributed in [0, 1).
0.12555060351645186
Expand All @@ -75,7 +74,7 @@ julia> rand!(r1, A) # Refill `A` with random numbers.
0xc0c5a8df4c1b160f 0x8b5269ed6c790e08 0x930b89985ae0c865
```

People will get the same results in their own computers of the above lines, except for the third one. For
People will get the same results in their own computers of the above lines. For
more interfaces and usage examples, please refer to the manual pages of each RNG.


Expand Down
2 changes: 1 addition & 1 deletion docs/src/man/random123.md
@@ -1 +1 @@
# Random123
# Random123 Family
2 changes: 1 addition & 1 deletion docs/src/man/xorshifts.md
@@ -1 +1 @@
# Xorshifts
# Xorshift Family

0 comments on commit a3c1afc

Please sign in to comment.