QuantEcon / website

Website for QuantEcon Organisation
https://quantecon.org
8 stars 8 forks source link

ENH: Rearrange navigation for new leactures, add filtering #121

Open DrDrij opened 8 months ago

DrDrij commented 8 months ago

In progress.

DrDrij commented 7 months ago

@mmcky I've pushed up the latest updates. Been staring at it a while so please do a quick test on your machine too, or I can do a bit more testing with the netlify build. I am hoping this layout simplifies the ordering somewhat.

Hey @jstac should have captured all your suggestions bro.

image

jstac commented 7 months ago

Looks beautiful. Many thanks @DrDrij !

mmcky commented 7 months ago

thanks @DrDrij -- looking good.

The Topic filter doesn't appear to obey the order in my commit abf6db1

lecture-tools-techniques.md:topic: Topics 1
lecture-stats.md:topic: Topics 2
lecture-python.md:topic: Topics 3
lecture-julia.md:topic: Programming 3, Topics 4
lecture-datascience.md:topic: Introductory 3, Topics 5
lecture-jax.md:topic: Programming 2, Topics 6
lecture-eqm.md:topic: Topics 7
lecture-markov.md:topic: Topics 8
lecture-dynamics.md:topic: Topics 9
lecture-dps.md:topic: Topics 10
lecture-dle.md:topic: Topics 11
lecture-advanced.md:topic: Topics 12

@jstac Just working on the final order

DrDrij commented 6 months ago

Hey @mmcky - had some luck, following the logic of the ordering function. We now have a separate lecture-series yaml file for each topic it lives under. So sorting, filtering, and ordering is all working now. The remaining item is to go through the original Liquid array of lecture series and remove items that contain the same "title". ie. we don't need multiple items in the series sorting list with the same title but differing values.

So yeah, hopefully its all sorting nicely on your end but note that under "All" we do have each series that lives under 2 topics appearing twice.

image
mmcky commented 6 months ago

thanks @DrDrij so each list has its own set of yml files such as topics-{name}.yml?

The remaining item is to go through the original Liquid array of lecture series and remove items that contain the same "title". ie. we don't need multiple items in the series sorting list with the same title but differing values.

Is this causing the duplicates in the All list?

mmcky commented 6 months ago

thanks @DrDrij so each list has its own set of yml files such as topics-{name}.yml?

The remaining item is to go through the original Liquid array of lecture series and remove items that contain the same "title". ie. we don't need multiple items in the series sorting list with the same title but differing values.

Is this causing the duplicates in the All list?

@DrDrij is there any way to drop the duplicates in the All view?

DrDrij commented 6 months ago

Hey @mmcky I've been tinkering away trying lots of ways to get the sorting to work. I've done written out the lectures on paper under each tab and the orders seem to be working. Mind giving it a test please :)

DrDrij commented 6 months ago

Testing today I see it is still getting confused. I am using an array in the front matter

`difficulty: 3

topic:

Will do a bit more testing.

mmcky commented 6 months ago

thanks @DrDrij let me know if we should just write out the html manually for now. :-)

DrDrij commented 6 months ago

Thanks @mmcky for the suggestion. I will do that now. I'm on my way back to Canberra on the 7th and will update to an automated method.

DrDrij commented 6 months ago

@mmcky Latest commit is now static HTML ordering for now.

mmcky commented 6 months ago

thanks @DrDrij

DrDrij commented 4 months ago

@mmcky Might have another crack at this..

mmcky commented 1 month ago

@DrDrij is this good to go or should we discuss before making this improvement. From memory the last update was that we would just manually update the locations of each lecture on the page. Is that right?

mmcky commented 3 days ago

@DrDrij I think it would be good to reinstate News from the collapsed RHS menu option. I will be reviewing news each month in an effort to keep the site more dynamic.

Once that change is done I think we can merge this and then iterate again on ways to improve finding the lectures.