book-networks-public icon indicating copy to clipboard operation
book-networks-public copied to clipboard

MAINT: remove code-book and add download links

Open mmcky opened this issue 1 year ago • 8 comments
trafficstars

This PR

  • [x] removes the code-book
  • [x] converts existing md files to ipynb files
  • [x] provides a new notebooks page to link to github to download the notebook files for each chapter.
  • [x] @mmcky to do a review and error check

mmcky avatar Mar 28 '24 04:03 mmcky

Deploy Preview for keen-wozniak-c08666 processing.

Name Link
Latest commit 3aa7074c22592645055f2373b6191e5eb9d05348
Latest deploy log https://app.netlify.com/sites/keen-wozniak-c08666/deploys/6604f55e0816d900087b6db0

netlify[bot] avatar Mar 28 '24 04:03 netlify[bot]

Deploy Preview for keen-wozniak-c08666 failed.

Name Link
Latest commit b0e478a3a81073237e0eebaa617695b4e1a3c836
Latest deploy log https://app.netlify.com/sites/keen-wozniak-c08666/deploys/6621bc85222bbd0007c17c5f

netlify[bot] avatar Mar 28 '24 04:03 netlify[bot]

@DrDrij can you help make this table look better in this context?

https://6604f5338a0863359318839a--keen-wozniak-c08666.netlify.app/notebooks

I copied the code from https://dp.quantecon.org/code.html but i think it doesn't look great when it is just a single line.

mmcky avatar Mar 28 '24 04:03 mmcky

Hey @mmcky I hope you don't mind I went ahead and just committed the change to the table.

This lines I edited are here: https://github.com/QuantEcon/book-networks-public/pull/62/files#diff-1935b95de07be14d4bfa51e8b6d87a248e2194e7dc56a775ebbf0ac4cafef1d1R32

The update should visually look like this: image

And the HTML markup just added the second cell onto a new table row so it went from:

                    <table class="alt" style="width:50%;">
                        <tbody>
                            <tr>
                                <td>Python</td><td><a href="https://github.com/QuantEcon/book-networks-public/tree/main/notebooks">Files on GitHub</a></td>
                            </tr>
                        </tbody>
                    </table>

And now is:

                    <table class="alt" style="width:50%;">
                        <tbody>
                            <tr>
                                <td>Python</td>
			    </tr>
			    <tr>
                                <td><a href="https://github.com/QuantEcon/book-networks-public/tree/main/notebooks">Files on GitHub</a></td>
                            </tr>
                        </tbody>
                    </table>

Hope this is what you were after!

DrDrij avatar Mar 28 '24 20:03 DrDrij

thanks @DrDrij

mmcky avatar Apr 01 '24 22:04 mmcky

  • [x] update location from notebooks to ipynb but that link won't work until site is published (@mmcky check all links once new site is published)

mmcky avatar Apr 19 '24 00:04 mmcky

@jstac this PR removes the code-book and replaces it with a static link to the collection of notebooks for each chapter. I don't see any collection of code in the book-networks repo so the source of truth are these notebooks as I understand.

https://github.com/QuantEcon/book-networks-public/tree/remove-code-book/ipynb

mmcky avatar Apr 19 '24 00:04 mmcky

@jstac this PR removes the code-book and replaces it with a static link to the collection of notebooks for each chapter. I don't see any collection of code in the book-networks repo so the source of truth are these notebooks as I understand.

https://github.com/QuantEcon/book-networks-public/tree/remove-code-book/ipynb

Thanks @mmcky. I don't think there are any corresponding notebooks in the private repo.

jstac avatar Apr 19 '24 03:04 jstac

@jstac are you happy for this to be merged now?

The notebook link on

https://6621bc8f2253ce485588bfed--keen-wozniak-c08666.netlify.app/

won't work until this is merged as the assets are part of this PR.

mmcky avatar Jul 07 '24 23:07 mmcky

@mmcky Perhaps we can go ahead and merge, so that all the links work, and then iterate if we need to?

Could you please fix any failing tests that you need to and then merge?

jstac avatar Jul 07 '24 23:07 jstac

thanks @jstac I will merge then review the page in full.

mmcky avatar Jul 08 '24 00:07 mmcky