-
Notifications
You must be signed in to change notification settings - Fork 18
Move README content to docstrings & update docs website #106
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
cade60c
Move README content to docstrings & update docs website
gdalle 2b04e56
WIP implementer guide
gdalle 4028c21
Add docs preview cleanup workflow
gdalle 9a18ab7
Update docs/src/user_guide.md
gdalle 3f521cf
Update docs/Project.toml
gdalle 141386a
Update src/AbstractDifferentiation.jl
gdalle cb72e1e
Update src/AbstractDifferentiation.jl
gdalle ece7d63
Update src/AbstractDifferentiation.jl
gdalle 1fde8ac
Update src/AbstractDifferentiation.jl
gdalle e2e9f66
Update src/AbstractDifferentiation.jl
gdalle e0c3702
Update src/AbstractDifferentiation.jl
gdalle 45f39e5
Update src/AbstractDifferentiation.jl
gdalle 13057c1
Update src/AbstractDifferentiation.jl
gdalle 4d6e7ad
Update src/AbstractDifferentiation.jl
gdalle 55e3484
Update src/AbstractDifferentiation.jl
gdalle d2dca85
Update src/AbstractDifferentiation.jl
gdalle d5499a1
Finish updating docstrings following devmotion's style recos
gdalle 0cfa565
JuliaFormatter
gdalle 1ac89ff
Merge remote-tracking branch 'origin/master' into gd/docstrings
gdalle d3e2191
Fix docs
gdalle 41919e0
Add implementer guide
gdalle cebaead
Formatting
gdalle c2014ac
Add prefixes
gdalle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,3 +1,2 @@ | ||
style = "blue" | ||
format_markdown = true | ||
|
This file contains hidden or 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 hidden or 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 @@ | ||
name: Doc Preview Cleanup | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
|
||
jobs: | ||
doc-preview-cleanup: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout gh-pages branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: gh-pages | ||
- name: Delete preview and history + push changes | ||
run: | | ||
if [ -d "previews/PR$PRNUM" ]; then | ||
git config user.name "Documenter.jl" | ||
git config user.email "[email protected]" | ||
git rm -rf "previews/PR$PRNUM" | ||
git commit -m "delete preview" | ||
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) | ||
git push --force origin gh-pages-new:gh-pages | ||
fi | ||
env: | ||
PRNUM: ${{ github.event.number }} |
This file contains hidden or 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,3 +1,4 @@ | ||
/Manifest.toml | ||
/docs/build | ||
/docs/src/index.md | ||
/docs/src/index.md | ||
/docs/Manifest.toml | ||
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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,3 +1,8 @@ | ||
[deps] | ||
AbstractDifferentiation = "c29ec348-61ec-40c8-8164-b8c60e9d9f3d" | ||
devmotion marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f" | ||
gdalle marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[compat] | ||
Documenter = "1" | ||
Zygote = "0.6" |
This file contains hidden or 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,8 +1,12 @@ | ||
using AbstractDifferentiation | ||
devmotion marked this conversation as resolved.
Show resolved
Hide resolved
|
||
import AbstractDifferentiation as AD | ||
using Documenter | ||
|
||
DocMeta.setdocmeta!( | ||
AbstractDifferentiation, :DocTestSetup, :(using AbstractDifferentiation); recursive=true | ||
AbstractDifferentiation, | ||
:DocTestSetup, | ||
:(import AbstractDifferentiation as AD); | ||
recursive=true, | ||
) | ||
|
||
generated_path = joinpath(@__DIR__, "src") | ||
|
@@ -28,15 +32,23 @@ end | |
makedocs(; | ||
modules=[AbstractDifferentiation], | ||
authors="Mohamed Tarek <[email protected]> and contributors", | ||
repo="https://github.com/JuliaDiff/AbstractDifferentiation.jl/blob/{commit}{path}#{line}", | ||
sitename="AbstractDifferentiation.jl", | ||
format=Documenter.HTML(; | ||
repolink="https://github.com/JuliaDiff/AbstractDifferentiation.jl", | ||
prettyurls=get(ENV, "CI", "false") == "true", | ||
canonical="https://JuliaDiff.github.io/AbstractDifferentiation.jl", | ||
edit_link="master", | ||
assets=String[], | ||
), | ||
pages=["Home" => "index.md", "API reference" => "api.md"], | ||
pages=[ | ||
"Home" => "index.md", | ||
"User guide" => "user_guide.md", | ||
"Implementer guide" => "implementer_guide.md", | ||
], | ||
) | ||
|
||
deploydocs(; repo="github.com/JuliaDiff/AbstractDifferentiation.jl", devbranch="master") | ||
deploydocs(; | ||
repo="github.com/JuliaDiff/AbstractDifferentiation.jl", | ||
devbranch="master", | ||
push_preview=true, | ||
gdalle marked this conversation as resolved.
Show resolved
Hide resolved
|
||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe instead just change
/Manifest.toml
toManifest.toml
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might need other manifests later on, e.g. for fully reproducible benchmarks