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

[PROJECT IDEA] Fork the schema reference site #34

Open
andylolz opened this issue Apr 9, 2021 · 4 comments
Open

[PROJECT IDEA] Fork the schema reference site #34

andylolz opened this issue Apr 9, 2021 · 4 comments
Labels
In progress Someone is currently working on this

Comments

@andylolz
Copy link
Member

andylolz commented Apr 9, 2021

Rationale

There are a few issues with the existing reference site that it would be useful to address:

  • Sidebar navigation is a bit confusing, because the submenu below the active page isn’t default expanded
  • Rules are expressed in a confusing way
  • It is very slow
  • It is only available in English
  • Switching versions is a bit clunky
  • There’s no way to do in-page links
  • […]

Proposal

  • We can use Ben’s Schema2Doc code, and then use sphinx to generate HTML from RST
  • We can start from the theme on https://github.com/IATI/IATI-Websites and then iterate from there
  • It can be hosted on github pages (v fast) and built by a github action (good to do CI)
@andylolz andylolz added the In progress Someone is currently working on this label Apr 9, 2021
@andylolz
Copy link
Member Author

andylolz commented Apr 9, 2021

I’ve made a start on this here:
https://reference.codeforiati.org

@matmaxgeds
Copy link
Contributor

Loathe to say this as it means more work that I am not qualified to do, but is there an option to pipe it into readthedocs or similar? Whatever the outcome is, I guess we should be prepared to constantly backport new updates done to the official site - if this couldn't be automatic, this might be more work than we can handle?

@andylolz
Copy link
Member Author

andylolz commented Apr 9, 2021

is there an option to pipe it into readthedocs or similar?

Yes, that’s exactly what I’d like to do! We should be able to put a readthedocs-style template onto sphinx, which gets us a few of the things in the list above.

I guess we should be prepared to constantly backport new updates done to the official site - if this couldn't be automatic, this might be more work than we can handle?

So, my hope on this is that we can do it automatically. However… Significant changes have been made to IATI-Extra-Documentation to make it compatible with wagtail, so it’s not totally clear yet how easy it will be. (I’ve had to use a very old version of that repo in order to get it working on https://reference.codeforiati.org).

I’m still hopeful at the moment that we can mirror IATI’s source code, and automatically pull in changes as they occur. That’s what we do currently with IATI-Codelists-NonEmbedded, see for example here: codeforIATI/IATI-Codelists-NonEmbedded#61

@andylolz
Copy link
Member Author

andylolz commented Apr 9, 2021

I’ve started a new ticket about this here: codeforIATI/reference#3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In progress Someone is currently working on this
Projects
None yet
Development

No branches or pull requests

2 participants