Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gaelforget/hellodocs.jl

Basic example of `Documenter.jl` use
https://github.com/gaelforget/hellodocs.jl

Last synced: 22 days ago
JSON representation

Basic example of `Documenter.jl` use

Awesome Lists containing this project

README

        

# HelloDocs.jl

This example is based on the `Documenter.jl` guide @

### 1) generate package

```
(v1.1) pkg> generate HelloDocs
shell> cd HelloDocs
```

### 2) add documentation files

```
julia> using Documenter
julia> using DocumenterTools
julia> DocumenterTools.generate("HelloDocs.jl/docs")
shell> ls HelloDocs/docs/
Project.toml make.jl src
shell> ls docs/src
index.md
```

### 3) compile empty doc

```
shell> cd HelloDocs.jl/docs/
julia> makedocs(sitename="HelloDocs.jl Documentation")
```

which created to

```
$ ls -1 build/*
build/HelloDocs.jl
build/search_index.js

build/assets:
arrow.svg
documenter.css
documenter.js
search.js

build/search:
index.html
```

### 4) add docstring, etc examples and compile `make.jl`

Docstrings were added in `src/HelloDocs.jl` and refs in `docs/src/index.md` before compiling `julia --color=yes make.jl` from within `docs/` in shell. Compilation then added two docstrings (`GreetUser` and `greet`) to `docs/build/index.html` and issued a warning as expected for `GreetYou`.