Skip to content

Commit

Permalink
Continue to twiddle.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Nov 7, 2023
1 parent 15a3fb2 commit 1abd0ec
Show file tree
Hide file tree
Showing 22 changed files with 72 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
docs/build
docs/clones
docs/Manifest.toml
docs/out
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
LiveServer = "16fef848-5104-11e9-1b77-fb7a48bbb589"
MultiDocumenter = "87ed4bf0-c935-4a67-83c3-2a03bee4197c"
36 changes: 29 additions & 7 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ docs/make.jl
Render the `JuliaManifolds` GitHub Organisation Multidocumenter with optinal arguments
Arguments
* `--deploy` - deploy docs
* `--deploy` - deploy docs to GitHub pages (e.g. on CI)
* `--help` - print this help and exit without rendering the documentation
* `--serve` - use `LiveServer.jl` to serve the current docs, also launches the browser
* `--temp` – clone the other repositories into a temp folder – otherwise use clones/
* `--deploy` - deploy docs to GitHub Pages
""",
)
exit(0)
Expand All @@ -31,17 +31,38 @@ if Base.active_project() != joinpath(@__DIR__, "Project.toml")
end

clonedir = ("--temp" in ARGS) ? mktempdir() : joinpath(@__DIR__, "clones")
outpath = ("--temp" in ARGS) ? mktempdir() : joinpath(@__DIR__, "build")
outpath = ("--temp" in ARGS) ? mktempdir() : joinpath(@__DIR__, "out")

@info """
Cloning packages into: $(clonedir)
Building aggregate site into: $(outpath)
"""

using MultiDocumenter, LiveServer
using MultiDocumenter, LiveServer, Documenter

# ## Build Menu – for now an entry each
# Build local docs
makedocs(;
format=Documenter.HTML(;
prettyurls=false, assets=["assets/favicon.ico"]
),
modules=Module[],
authors="Ronny Bergmann",
sitename="Julia Manifolds",
pages=[
"Home" => "index.md",
]
)

# ## Build Multidocs – for now an entry each Repo
docs = [
MultiDocumenter.MultiDocRef(
upstream = "build",
path = "juliamanifolds",
name = "Home",
giturl = "",
branch = "",
fix_canonical_url = false,
),
MultiDocumenter.MultiDocRef(
upstream = joinpath(clonedir, "ManifoldsBase.jl"),
path = "manifoldsbase",
Expand Down Expand Up @@ -86,7 +107,7 @@ docs = [
MultiDocumenter.make(
outpath,
docs;
assets_dir = "docs/src/assets",
assets_dir = "src/assets",
search_engine = MultiDocumenter.SearchConfig(
index_versions = ["stable"],
engine = MultiDocumenter.FlexSearch
Expand All @@ -98,7 +119,7 @@ MultiDocumenter.make(

# ## Deploy
if "--deploy" in ARGS
@warn "Deploying to GitHub" ARGS
@warn "Deploying to GitHub"
gitroot = normpath(joinpath(@__DIR__, ".."))
run(`git pull`)
outbranch = "gh-pages"
Expand Down Expand Up @@ -136,3 +157,4 @@ else
@info "Skipping deployment, '--deploy' not passed. Generated files in docs/$(outpath)."
end
# ## Serve ?
("--serve" in ARGS) && serve(dir=joinpath(@__DIR__, outpath), launch_browser=true)
Binary file added docs/src/assets/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions docs/src/assets/citations.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* Taken from https://juliadocs.org/DocumenterCitations.jl/v1.2/styling/ */

.citation dl {
display: grid;
grid-template-columns: max-content auto; }
.citation dt {
grid-column-start: 1; }
.citation dd {
grid-column-start: 2;
margin-bottom: 0.75em; }
.citation ul {
padding: 0 0 2.25em 0;
margin: 0;
list-style: none;}
.citation ul li {
text-indent: -2.25em;
margin: 0.33em 0.5em 0.5em 2.25em;}
.citation ol li {
padding-left:0.75em;}
Binary file added docs/src/assets/favicon copy.ico
Binary file not shown.
Binary file added docs/src/assets/favicon-16x16 copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/favicon-32x32 copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/favicon.ico
Binary file not shown.
Binary file added docs/src/assets/logo copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/logo-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/logo-dark_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/logo-text-readme-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/logo-text-readme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/logo_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/assets/mstile-150x150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions docs/src/assets/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
3 changes: 3 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Julia Manifolds

Hi!

0 comments on commit 1abd0ec

Please sign in to comment.