-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix many links and add setup for new Pollen frontend * more ToC entries
- Loading branch information
Showing
24 changed files
with
206 additions
and
92 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: pollenbuild | ||
|
||
on: | ||
push: | ||
branches: ['pollen'] | ||
|
||
jobs: | ||
pollen: | ||
name: "Pollen documentation build" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: pollen | ||
path: data | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: "gh-pages" | ||
path: "pages" | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: lorenzoh/pollenjl-frontend | ||
path: frontend | ||
ref: main | ||
- name: Move Pollen data to static folder | ||
run: | | ||
ls | ||
rm -rf data/.git | ||
cp -r data/ frontend/static/ | ||
- uses: actions/setup-node@v2 | ||
- name: Install dependencies | ||
run: | | ||
cd frontend | ||
npm install | ||
- name: Build | ||
run: | | ||
cd frontend | ||
npm run build | ||
- name: Build search index | ||
run: | | ||
cd frontend | ||
cat static/data/dev/documents.json | node buildindex.cjs > ../data/dev/searchindex.json | ||
- name: Deploy changes | ||
run: | | ||
ls -lt | ||
rm -r frontend/build/data | ||
cp -r frontend/build/** pages | ||
cp -r data pages/ | ||
cd pages | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
git add -f . | ||
git commit -m "Deploy documentation (Pollen.jl)" | ||
git push | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: pollenexport | ||
|
||
on: | ||
push: | ||
branches: ['master'] | ||
|
||
jobs: | ||
pollen: | ||
name: "Pollen documentation export" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: pollen | ||
path: pollen | ||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
version: '1.7' | ||
- name: "Install package and docs dependencies" | ||
run: | | ||
julia --color=yes --project=docs/ -e 'using Pkg; Pkg.add([Pkg.PackageSpec(path="."), Pkg.PackageSpec(url="https://github.com/lorenzoh/ModuleInfo.jl"), Pkg.PackageSpec(url="https://github.com/lorenzoh/Pollen.jl", rev="frontend")]); Pkg.instantiate();' | ||
- name: Build | ||
run: | | ||
julia --color=yes --project=docs/ ./docs/make.jl ./pollen/dev/ | ||
- name: Deploy | ||
run: | | ||
cd pollen | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
git add . | ||
git commit -m "Build documentation data (Pollen.jl)" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
using Pkg | ||
using Pollen | ||
using FastAI | ||
using FastAI: Image | ||
Image | ||
using FluxTraining | ||
using DLPipelines | ||
import DataAugmentation | ||
using FilePathsBase | ||
|
||
import CairoMakie | ||
# Create target folder | ||
DIR = abspath(mkpath(ARGS[1])) | ||
|
||
ENV["DATADEPS_ALWAYS_ACCEPT"] = "true" | ||
|
||
refmodules = [FastAI, FluxTraining, DLPipelines, DataAugmentation, FastAI.Datasets, FastAI.Models] | ||
project = Pollen.documentationproject(FastAI; refmodules = refmodules) | ||
Pollen.fullbuild(project, Pollen.FileBuilder(Pollen.HTML(), p"dev/")) | ||
# Create Project | ||
project = include("project.jl") | ||
|
||
|
||
@info "Rewriting documents..." | ||
Pollen.rewritesources!(project) | ||
|
||
@info "Writing to disk at \"$DIR\"..." | ||
builder = Pollen.FileBuilder( | ||
Pollen.JSON(), | ||
DIR, | ||
) | ||
Pollen.build( | ||
builder, | ||
project, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Pollen | ||
using Pkg | ||
using Crayons | ||
Crayons.COLORS[:nothing] = 67 | ||
|
||
using FastAI, Flux, FluxTraining | ||
import DataAugmentation | ||
m = FastAI | ||
ms = [ | ||
DataAugmentation, | ||
Flux, | ||
FluxTraining, | ||
m, | ||
] | ||
|
||
|
||
project = Project( | ||
Pollen.Rewriter[ | ||
Pollen.DocumentFolder(pkgdir(m), prefix = "documents"), | ||
Pollen.ParseCode(), | ||
Pollen.ExecuteCode(), | ||
Pollen.PackageDocumentation(ms), | ||
Pollen.DocumentGraph(), | ||
Pollen.SearchIndex(), | ||
Pollen.SaveAttributes((:title,)), | ||
Pollen.LoadFrontendConfig(pkgdir(m)) | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
using FastAI | ||
import FastAI: Image | ||
import CairoMakie | ||
using Pollen | ||
using FluxTraining | ||
using DLPipelines | ||
import DataAugmentation | ||
using FilePathsBase | ||
using Colors | ||
|
||
function serve(lazy=true; kwargs...) | ||
refmodules = [FastAI, FluxTraining, DLPipelines, DataAugmentation, DataLoaders, FastAI.Datasets] | ||
project = Pollen.documentationproject(FastAI; refmodules, watchpackage=true, kwargs...) | ||
Pollen.serve(project, lazy=lazy) | ||
end | ||
serve() | ||
# using MyPackage | ||
|
||
## | ||
|
||
# Create Project | ||
project = include("project.jl") | ||
|
||
#= | ||
project = Pollen.documentationproject(FastAI; refmodules, inlineincludes = false, ) | ||
=# | ||
|
||
@info "Rewriting documents..." | ||
Pollen.rewritesources!(project) | ||
|
||
Pollen.serve(project, lazy=get(ENV, "POLLEN_LAZY", "false") == "true", format = Pollen.JSON()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"Overview": "documents/README.md", | ||
"Setup": "documents/docs/setup.md", | ||
"Quickstart": "documents/notebooks/quickstart.ipynb", | ||
"Tutorials": { | ||
"Beginner": { | ||
"Introduction": "documents/docs/introduction.md", | ||
"Discovering functionality": "documents/docs/discovery.md" | ||
}, | ||
"Intermediate": { | ||
"Data containers": "documents/docs/data_containers.md" | ||
}, | ||
"Advanced": { | ||
"Unsupervised learning tasks": "documents/notebooks/vae.ipynb" | ||
} | ||
}, | ||
"Computer vision": { | ||
"Tasks": { | ||
"Image segmentation": "documents/notebooks/imagesegmentation.ipynb", | ||
"Keypoint regression": "documents/notebooks/keypointregression.ipynb" | ||
}, | ||
"How-To": { | ||
"Use augmentations": "documents/docs/augmentvision.md", | ||
"Presize vision datasets": "notebooks/presizing.ipynb" | ||
} | ||
}, | ||
"Tabular data": { | ||
"Tasks": { | ||
"Tabular classification": "documents/notebooks/tabularclassification.ipynb" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.