Skip to content

Add website #134

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 37 commits into from
Mar 12, 2025
Merged

Conversation

richarddushime
Copy link
Contributor

@richarddushime richarddushime commented Mar 3, 2025

Before submitting a pull request (PR), please read the contributing guide.

Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)

Description

What is this PR
Improving the documentation of cookie-cutter using sphnix

  • Bug fix
  • Addition of a new feature
  • Other

Why is this PR needed?

What does this PR do?

References

#58

How has this PR been tested?

I tested this by Running locally and made sure all is working as Expected.

Is this a breaking change?

No

If this PR breaks any existing functionality, please explain how and why.

Does this PR require an update to the documentation?

yes

If any features have changed, or have been added. Please explain how the
documentation has been updated.

Inprogresss

Checklist:

  • The code has been tested locally
  • Tests have been added to cover all new functionality
  • The documentation has been updated to reflect any changes
  • The code has been formatted with pre-commit

@richarddushime
Copy link
Contributor Author

richarddushime commented Mar 3, 2025

Ready for Review

@adamltyson adamltyson linked an issue Mar 3, 2025 that may be closed by this pull request
5 tasks
@adamltyson
Copy link
Member

Looking nice, thanks @richarddushime

@adamltyson adamltyson self-requested a review March 3, 2025 13:19
@richarddushime richarddushime marked this pull request as ready for review March 3, 2025 21:58
Copy link
Member

@adamltyson adamltyson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good, thanks @richarddushime. I've left some comments, but at this stage a few high-level comments:

  • Could you use the same theme and tooling etc as that is inside the cookiecutter template? One of the main aims of this documentation site is to show potential users what their own docs would look like.
  • Could you use markdown rather than rst? In all our other websites we use md, so this will help maintainance considerably

A few small things:

  • Could you remove the "give us a star" button?
  • On my browser at least, the search bar looks a bit weird, like a box in a box in a box!
  • There seems to be links to an unrelated datascience cookiecutter project

@richarddushime
Copy link
Contributor Author

This is looking good, thanks @richarddushime. I've left some comments, but at this stage a few high-level comments:

  • Could you use the same theme and tooling etc as that is inside the cookiecutter template? One of the main aims of this documentation site is to show potential users what their own docs would look like.
  • Could you use markdown rather than rst? In all our other websites we use md, so this will help maintainance considerably

A few small things:

  • Could you remove the "give us a star" button?
  • On my browser at least, the search bar looks a bit weird, like a box in a box in a box!
  • There seems to be links to an unrelated datascience cookiecutter project

I am Sorry , I actually made a confusion with the cookier-cutter datascience In my mind I thought it was the same as this and I had to link back to it

I will fix this ASAP

richarddushime and others added 3 commits March 5, 2025 13:36
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
@richarddushime
Copy link
Contributor Author

Hi @adamltyson
I have made the changes , I will be waiting for the feedback .
Thanks

Copy link
Member

@adamltyson adamltyson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking nice, thanks @richarddushime. I've left a couple of suggestions.

Currently it's still a linear list of information, I wonder if there are ways to make it easier to navigate and maybe look nice too? The movement website is a nice example:
https://movement.neuroinformatics.dev/

@richarddushime
Copy link
Contributor Author

Hi @adamltyson

I worked on the layout based on the requested changes you made,
noting that based on what we have, I separated the navbar and sidebar,

Note> The navbar can also be removed if there is not much things to put there

For the link back to the main site, I included a logo in the footer section

I also did not add the version to the navbar with the project title, like it is done on the Movement website
if it's needed let me know if I should use setuptools_scm or set a static value

Thanks Attached is the screenshot

pcc

Copy link
Member

@adamltyson adamltyson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @richarddushime, this is looking much better. I've left quite a few comments, but they're mostly very minor. I haven't checked all the content, but that's on us to keep up to date.

One more thing, would you be able to reduce the readme to the bear minimum? Idealy we would only maintain the docs in one place (which will soon become this website).

richarddushime and others added 12 commits March 7, 2025 16:09
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
@richarddushime
Copy link
Contributor Author

Very nearly there, thanks for your patience @richarddushime. Just two small requests.

Thanks
I m verry sorry I missed it out

Additionnaly
is the logo for NIU needed on the navbar ?? can we maintain only the tool name ?? like Python-cookiecutter v0.1.0 only

Copy link
Member

@adamltyson adamltyson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is basically done now. I've suggested a few small changes, but we will go through the content ourselves later on and edit.

Re the navbar, ideally the logo would stay. I only say this because there are lots of cookiecutter templats for Python. This isn't intended to be the main one. It's eseentially an internal template that we share with others.

To simplify the navbar, we could probably just get rid of the version number. We don't version this template properly anyway.

Lastly, could you look into why the CI is failing?

@adamltyson adamltyson changed the title Improve doc content #58 Add website Mar 11, 2025
richarddushime and others added 5 commits March 11, 2025 18:19
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
Co-authored-by: Adam Tyson <code@adamltyson.com>
@richarddushime richarddushime changed the title Add website Improve doc content Mar 11, 2025
@richarddushime
Copy link
Contributor Author

Thank you very Much
I have made the last commit
I looked through the CI and Updated accordingly to use NIU actions repository

Hope this time it will pass

About Pre-commit , Locally its passing well , not sure why its now refusing to pass

@adamltyson adamltyson changed the title Improve doc content Add website Mar 12, 2025
@adamltyson
Copy link
Member

Thanks @richarddushime. I will take a look as soon as I can. I've updated the PR title again, would you mind not changing it back?

@adamltyson
Copy link
Member

Hi @richarddushime it looks like the CI is still not passing. One of the issues is with the linkcheck. You may need to double check the links, and any that are still reporting issues (even though you've manually verified them), may need to be ignored For an example, see the BrainGlobe docs:

https://github.com/brainglobe/brainglobe.github.io/blob/17e1462fbe50aab317cd9ab550af4b7be4ebcb8b/docs/source/conf.py#L189-L196

@richarddushime
Copy link
Contributor Author

Thanks @richarddushime. I will take a look as soon as I can. I've updated the PR title again, would you mind not changing it back?

Sure, I actually had not realised that you renamed it and I thought I was in a wrong PR

@richarddushime
Copy link
Contributor Author

I am not sure why this is persisting but locally All looks well

pre-commits

@adamltyson
Copy link
Member

I think there was an issue with a change in main failing the linting. Have updated.

@richarddushime
Copy link
Contributor Author

I think there was an issue with a change in main failing the linting. Have updated.

Finaly I was now going line per line and viewing even the NIU actions repo

👍 Thank you

@adamltyson adamltyson self-requested a review March 12, 2025 17:01
Copy link
Member

@adamltyson adamltyson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks again @richarddushime!

@adamltyson adamltyson merged commit ebd13de into neuroinformatics-unit:main Mar 12, 2025
10 checks passed
@adamltyson
Copy link
Member

The actions seem to be running properly, but they aren't creating the gh-pages branch as they should, and so the website isn't deployed.

@richarddushime
Copy link
Contributor Author

The actions seem to be running properly, but they aren't creating the gh-pages branch as they should, and so the website isn't deployed.

let me look into this
Thanks

@adamltyson
Copy link
Member

Don't worry, I sorted it on our side. Website is live 🎉 https://python-cookiecutter.neuroinformatics.dev/

@richarddushime
Copy link
Contributor Author

The actions seem to be running properly, but they aren't creating the gh-pages branch as they should, and so the website isn't deployed.

Amazing
Thank you

@adamltyson adamltyson mentioned this pull request Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve doc content
2 participants