NOAA-quarto-simple-python

所属分类:collect
开发工具:Lua
文件大小:0KB
下载次数:0
上传日期:2022-11-05 19:03:02
上 传 者sh-1993
说明:  具有Python代码的简单Quarto网站。GitHub操作在发生更改时呈现,
(Simple Quarto website with Python code. GitHub Action renders when there are changes,)

文件列表:
.nojekyll (0, 2022-11-05)
LICENSE (7048, 2022-11-05)
_quarto.yml (1546, 2022-11-05)
content/ (0, 2022-11-05)
content/acknowledgements.qmd (219, 2022-11-05)
content/add-content.qmd (750, 2022-11-05)
content/code.qmd (1846, 2022-11-05)
content/customizing.qmd (817, 2022-11-05)
content/notebooks.ipynb (2819, 2022-11-05)
content/publishing.qmd (3090, 2022-11-05)
content/rendering.qmd (1329, 2022-11-05)
environment.yml (175, 2022-11-05)
favicon.ico (15406, 2022-11-05)
include-files.lua (3414, 2022-11-05)
index.qmd (2378, 2022-11-05)
requirements.txt (41, 2022-11-05)
theme-dark.scss (491, 2022-11-05)
theme.scss (165, 2022-11-05)

# NOAA quarto simple website with Python in qmd or Jupyter Notebooks This is a template for [a simple Quarto website](https://nmfs-opensci.github.io/NOAA-quarto-simple-python/) that looks like a "book". This is a common format for documentation. It includes a GitHub Action that will build the website automatically when you make changes to the files. The webpage will use the `gh-pages` branch. Serving the website files from this branch is a common way to keep all the website files from cluttering your main branch. This Quarto website has Python code in the `code.qmd` file and has a Jupyter notebook. The GitHub Action will render those for you but note that you need some a special **RAW** block at the top of your ipynb file. Without this, the Jupyter notebook won't render (code blocks won't be computed). It looks like this ``` --- title: Jupyter Notebook execute: enabled: true jupyter: python3 --- ``` Also you will need to add any modules that your code needs to the `requirements.txt` file so they are installed by the GitHub Action. You can run this code from a terminal window: ``` python3 -m pip install -r requirements.txt ``` Note this assumes Python 3+. ## GitHub Set-up * Click the green "Use This Template" button to make a repository with this content. Make sure to make your repo public (since GitHub Pages doesn't work on private repos unless you have a paid account) and check box to include all the branches (so that you get the gh-pages branch). image * Turn on GitHub Pages under Settings > Pages . You will set pages to be made from the gh-pages branch and root directory. image * Turn on GitHub Actions under Settings > Actions > General image * Edit the repo description and Readme to add a link to the webpage. When you edit the description, you will see the link url in the url box or you can click on the Actions tab or the Settings > Pages page to find the url to the Quarto website ## Customize * Edit the qmd or md files in the `content` folder. qmd files can include code (R, Python, Julia) and lots of Quarto markdown bells and whistles (like call-outs, cross-references, auto-citations and much more). * Add the files to `_quarto.yml`
### Disclaimer This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project content is provided on an ‘as is’ basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government. ### License This content was created by U.S. Government employees as part of their official duties. This content is not subject to copyright in the United States (17 U.S.C. §105) and is in the public domain within the United States of America. Additionally, copyright is waived worldwide through the CC0 1.0 Universal public domain dedication.

近期下载者

相关文件


收藏者