-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
New documentation site #914
Merged
Merged
Conversation
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
tillprochaska
force-pushed
the
website-astro
branch
from
November 25, 2022 13:00
70424e2
to
1f5bcc7
Compare
tillprochaska
force-pushed
the
website-astro
branch
from
November 30, 2022 08:59
eec2744
to
067092c
Compare
tillprochaska
force-pushed
the
website-astro
branch
2 times, most recently
from
November 30, 2022 16:38
59b0ab5
to
47c855e
Compare
tillprochaska
force-pushed
the
website-astro
branch
2 times, most recently
from
December 9, 2022 18:23
a60c80b
to
178d6f4
Compare
tillprochaska
temporarily deployed
to
github-pages
December 9, 2022 18:25 — with
GitHub Actions
Inactive
tillprochaska
force-pushed
the
website-astro
branch
from
December 15, 2022 14:48
178d6f4
to
65c1d2c
Compare
tillprochaska
temporarily deployed
to
github-pages
December 15, 2022 14:49 — with
GitHub Actions
Inactive
tillprochaska
force-pushed
the
website-astro
branch
from
December 15, 2022 14:56
65c1d2c
to
4545ed1
Compare
tillprochaska
temporarily deployed
to
github-pages
December 15, 2022 14:57 — with
GitHub Actions
Inactive
tillprochaska
force-pushed
the
website-astro
branch
from
December 19, 2022 16:59
c589ac3
to
1574df0
Compare
tillprochaska
temporarily deployed
to
github-pages
December 19, 2022 17:01 — with
GitHub Actions
Inactive
tillprochaska
temporarily deployed
to
github-pages
December 19, 2022 17:22 — with
GitHub Actions
Inactive
tillprochaska
force-pushed
the
website-astro
branch
from
December 19, 2022 17:28
036920c
to
3ed79de
Compare
tillprochaska
temporarily deployed
to
github-pages
December 19, 2022 17:30 — with
GitHub Actions
Inactive
tillprochaska
force-pushed
the
website-astro
branch
3 times, most recently
from
December 19, 2022 17:52
4171cc1
to
bd5adcd
Compare
tillprochaska
temporarily deployed
to
github-pages
December 19, 2022 17:53 — with
GitHub Actions
Inactive
tillprochaska
temporarily deployed
to
github-pages
December 19, 2022 17:59 — with
GitHub Actions
Inactive
tillprochaska
force-pushed
the
website-astro
branch
from
December 19, 2022 18:02
9b14818
to
185224d
Compare
tillprochaska
temporarily deployed
to
github-pages
December 19, 2022 18:04 — with
GitHub Actions
Inactive
tillprochaska
force-pushed
the
website-astro
branch
from
December 19, 2022 18:07
185224d
to
42dd9f0
Compare
… extracted docstrings
Visitors are more likely to look up schema docs than property type documentation.
Enabling search includes an inline script with a URL template that fails the links checker. The easy "fix" for now is to simply disable search.
Otherwise, the documentation would be built using a potentially outdated version of the default model.
Prettier formats prose content within JSX elements weirdly.
Searching for "edge" for example would lead to a lot of irrelevant results from the "Semantics" section on schema pages.
tillprochaska
force-pushed
the
website-astro
branch
from
January 4, 2023 20:42
42dd9f0
to
243faaa
Compare
tillprochaska
temporarily deployed
to
github-pages
January 4, 2023 20:44 — with
GitHub Actions
Inactive
tillprochaska
temporarily deployed
to
github-pages
January 4, 2023 20:55 — with
GitHub Actions
Inactive
tillprochaska
temporarily deployed
to
github-pages
January 4, 2023 21:02 — with
GitHub Actions
Inactive
tillprochaska
force-pushed
the
website-astro
branch
from
January 4, 2023 21:08
73e914d
to
35b8007
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This adds a new documentation site for FollowTheMoney. The site now consists of three separate sections:
Some of the features include:
We now have auto-generated pages for every FtM schema and property type (example). These pages include schema/type descriptions, property listings, the first version that included the schema, …
RDF XML specs and Python API documentation are generated automatically in GitHub Actions.
You can reference schemata, property types and Python classes in Markdown and they will be turned into links automatically:
Search using Algolia DocSearch. I have slightly customized the crawler to work well for out content structure. Includes a full index of all schemata, types, and properties.
A few aspects of this migration I’d appreciate feedback on:
I’ve used pdoc to generate Python API docs. Currently, we use Sphinx. I don’t really have any personal preference, pdoc was just easier to set up (requires no configuration). Anyone strong opinions on this? Alternatively, I could setup Sphinx to generate the API docs (but no static documentation pages)
We previously used a Sphinx plugin to generated a CLI reference for
ftm
. Pdoc doesn’t support that, and I’ve taken the easy path and have simply pasted the output offtm --help
here.Instead of embedding the Python API reference directly on relevant pages, I’ve simply linked out to them (example.
I was thinking of adding search via Algolia at a later point. This does however require the site to be already online.
The site is deployed to GitHub Pages. Only changes on the
main
branch are deployed, there are no PR previews. This is a downside of GitHub Pages, but it simplifies the setup and allows us to reuse the deployment setup we use for other projects at OCCRP.To do:
@alephdata/followthemoney
version once Add property type descriptions to JSON model #913 is merged and releaseddefaultModel
exported by the npm package, but importdefaultModel.json
from the source directly. Otherwise, the docs would always be outdated by one version.Link to YAML schema sourceabstract
,generated
,edge
,temporalExtent
on schema pagesIncludematchable
,pivot
,group
on property type pageshidden
in property listingsTo do before merging:
options.json
tomain
docs
directory and renamesite
todocs
?namespace
target, XML is now built in CI)