QuantEcon / quantecon-book-theme

A Jupyter Book Theme for QuantEcon Book Style Projects
BSD 3-Clause "New" or "Revised" License
40 stars 20 forks source link

ENH: Adding Search #204

Closed AakashGfude closed 1 year ago

AakashGfude commented 1 year ago

Adding a search button:

Screen Shot 2023-04-30 at 11 35 24 pm

Which expands to a search input on clicking:

Screen Shot 2023-04-30 at 11 35 31 pm

And the search result page:

Screen Shot 2023-04-30 at 11 41 56 pm
codecov[bot] commented 1 year ago

Codecov Report

Merging #204 (cf18170) into master (b7d02c4) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #204   +/-   ##
=======================================
  Coverage   71.12%   71.12%           
=======================================
  Files           2        2           
  Lines         239      239           
=======================================
  Hits          170      170           
  Misses         69       69           
Flag Coverage Δ
pytests 71.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

mmcky commented 1 year ago

thanks @AakashGfude this is looking great -- I like the simple search icon.

Some comments and ideas:

@DrDrij would you mind to give @AakashGfude some help in making this a bit more integrated to the site.

mmcky commented 1 year ago

@jstac this PR is adding search and was interested in your ideas as well

The demo page:

https://644f3f4291193548b40d375c--hungry-lovelace-7d0512.netlify.app/intro.html

and a search result

https://644f3f4291193548b40d375c--hungry-lovelace-7d0512.netlify.app/search.html?q=matplotlib

AakashGfude commented 1 year ago

@mmcky does this look better? Or a bigger search field?

Screen Shot 2023-05-02 at 4 33 03 pm
mmcky commented 1 year ago

@AakashGfude I think that looks nice and a good placement.

jstac commented 1 year ago

+1 from me @AakashGfude . Nice work.

mmcky commented 1 year ago

@AakashGfude I am excited to have search on our lectures and I think this is looking pretty good.

I think we can merge this -- and refine with feedback from @DrDrij.

Thanks for pushing this forward @AakashGfude