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

docs: Add headers for easier Core, Base and stdlib reference #55311

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
4 changes: 2 additions & 2 deletions doc/src/base/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ where
::
```

## Standard Modules
## [Standard Modules](@id standard-modules)
```@docs
Main
Core
Base
```

## Base Submodules
## [Base Submodules](@id base-submodules)
```@docs
Base.Broadcast
Base.Docs
Expand Down
28 changes: 27 additions & 1 deletion doc/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ and [Ruby](https://en.wikipedia.org/wiki/Ruby_(programming_language)).

The most significant departures of Julia from typical dynamic languages are:

* The core language imposes very little; Julia Base and the standard library are written in Julia itself, including
* The core language imposes very little; [Julia Base and the standard library](@ref man-core-base-and-stdlib) are written in Julia itself, including
primitive operations like integer arithmetic
* A rich language of types for constructing and describing objects, that can also optionally be
used to make type declarations
Expand Down Expand Up @@ -126,3 +126,29 @@ language. In addition to the above, some advantages of Julia over comparable sys
* Call C functions directly (no wrappers or special APIs needed)
* Powerful shell-like capabilities for managing other processes
* Lisp-like macros and other metaprogramming facilities

## [Julia Standard Modules and the Standard Library](@id man-standard-modules-stdlib)

The Julia runtime comes with [standard modules](@ref standard-modules),
which are essential namespaces that are usually loaded automatically.

```@docs; canonical=false
Core
Base
adigitoleo marked this conversation as resolved.
Show resolved Hide resolved
```

Julia's `Base` module contains various [useful submodules](@id base-submodules).

### [The Standard Library](@id man-stdlib)

The Julia standard library contains additional, commonly used packages that are installed alongside the Julia runtime by default.
To use a standard library package, it is first necessary to load the package with a [`using`](@ref) or [`import`](@ref) statement.
Links to available standard library packages are provided below,
and may also be found in the website sidebar.
Their source code is available in the `Sys.STDLIB` directory of a Julia installation.

```@eval
import Markdown
list = sort(filter(x -> match(r"_jll$", x) === nothing, readdir(Sys.STDLIB)))
Markdown.parse(join("- [`" .* list .* "`](stdlib/" .* list .* ".html)", "\n"))
```