Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Oct 6, 2023
1 parent 5296f57 commit 11a25f3
Show file tree
Hide file tree
Showing 15 changed files with 487 additions and 397 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
970f24a2
b8604f49
57 changes: 44 additions & 13 deletions CONTRIBUTING.html
Original file line number Diff line number Diff line change
Expand Up @@ -436,16 +436,33 @@ <h2 class="anchored" data-anchor-id="new-contributor-guide">New contributor guid
<section id="quarto-guidance" class="level3">
<h3 class="anchored" data-anchor-id="quarto-guidance">Quarto guidance</h3>
<p>For more information specific to how a quarto site works, and for examples of what is possible within a static quarto site, see the main <a href="https://quarto.org/" target="_blank">Quarto website</a>.</p>
<!-- TODO: add more details on
- adding images (in the right folder, code to do so)
- adding links (within page, within site, external to site)]
- adding videos / other content
- redirecting pages where changing / removing
- checking for broken links when changing headings
- building locally before raising a pull request
-->
<section id="adding-images-in-the-right-folder-code-to-do-so" class="level4">
<h4 class="anchored" data-anchor-id="adding-images-in-the-right-folder-code-to-do-so">Adding images (in the right folder, code to do so)</h4>
</section>
<section id="adding-links-within-page-within-site-external-to-site" class="level4">
<h4 class="anchored" data-anchor-id="adding-links-within-page-within-site-external-to-site">Adding links (within page, within site, external to site)]</h4>
</section>
<section id="adding-videos-other-content" class="level4">
<h4 class="anchored" data-anchor-id="adding-videos-other-content">Adding videos / other content</h4>
</section>
<section id="redirecting-pages-where-changing-removing" class="level4">
<h4 class="anchored" data-anchor-id="redirecting-pages-where-changing-removing">Redirecting pages where changing / removing</h4>
</section>
<section id="checking-for-broken-links-when-changing-headings" class="level4">
<h4 class="anchored" data-anchor-id="checking-for-broken-links-when-changing-headings">Checking for broken links when changing headings</h4>
</section>
<section id="building-locally-before-raising-a-pull-request" class="level4">
<h4 class="anchored" data-anchor-id="building-locally-before-raising-a-pull-request">Building locally before raising a pull request</h4>
</section>
<section id="changing-the-appearance-of-code-blocks" class="level4">
<h4 class="anchored" data-anchor-id="changing-the-appearance-of-code-blocks">Changing the appearance of code blocks</h4>
<p>You can modify the <code>highlight-style</code> element in the <code>quarto.yml</code> file to change the display of code blocks using predefined themes. This will change the appearance of all code snippets across the entire Analysts’ guide. The current theme is set to “printing” but there is a list of other available themes <a href="https://quarto.org/docs/output-formats/html-code.html#highlighting" target="_blank">on the Quarto website</a>.</p>
<p>Some things to be aware of before you make changes:</p>
<ul>
<li><p>Some of the themes are adaptive, meaning that if you change the site view from dark mode to light mode then the theme will also change accordingly.</p></li>
<li><p>The appearance of code snippets will only change if the language (e.g.&nbsp;R, Python) is defined at the start of the snippet (e.g.&nbsp;<code>``` {r connection_example, eval=FALSE}</code>). Including <code>eval=FALSE</code> stops your code snippet from actually running. If no language is defined, the snippet appearance will need to be modified manually and this can cause some issues.</p></li>
</ul>
</section>
</section>
<section id="issues" class="level3">
<h3 class="anchored" data-anchor-id="issues">Issues</h3>
Expand All @@ -460,7 +477,13 @@ <h4 class="anchored" data-anchor-id="solve-an-issue">Solve an issue</h4>
</section>
<section id="make-changes" class="level3">
<h3 class="anchored" data-anchor-id="make-changes">Make Changes</h3>
<p>Key things to remember when making or proposing changes: - Where guidance already exists elsewhere it should be linked to rather than duplicated - When adding images, save them in the /images folder - When adding files for download, save them in the /resources folder - Don’t commit rendered .html files for pages - If your changes remove or edit a pre-existing anchor link, consider how that will be redirected for users who may have bookmarked it</p>
<p>Key things to remember when making or proposing changes:</p>
<ul>
<li><p>Where guidance already exists elsewhere it should be linked to rather than duplicated</p></li>
<li><p>When adding images, save them in the /images folder</p></li>
<li><p>When adding files for download, save them in the /resources folder - Don’t commit rendered .html files for pages</p></li>
<li><p>If your changes remove or edit a pre-existing anchor link, consider how that will be redirected for users who may have bookmarked it</p></li>
</ul>
<section id="make-changes-in-the-ui" class="level4">
<h4 class="anchored" data-anchor-id="make-changes-in-the-ui">Make changes in the UI</h4>
<p>Click <strong>Edit this page</strong> at the bottom of the right hand table of contents of any page to make small changes such as a typo, sentence fix, or a broken link. This takes you to the <code>.Qmd</code> file where you can make your changes and <a href="#pull-request">create a pull request</a> for a review.</p>
Expand All @@ -478,8 +501,16 @@ <h4 class="anchored" data-anchor-id="make-changes-locally">Make changes locally<
<section id="pull-request" class="level3">
<h3 class="anchored" data-anchor-id="pull-request">Pull Request</h3>
<p>All pull requests should be made against the main branch.</p>
<p>When you’re finished with the changes, create a pull request, also known as a PR. - Don’t forget to <a href="https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue" target="_blank">link PR to issue</a> if you are solving one.</p>
<p>Once you submit your PR, a repository admin will review your proposal. We may ask questions or request additional information. - We may ask for changes to be made before a PR can be merged, either using <a href="https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request" target="_blank">suggested changes</a> or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes and then commit them to your branch. - As you update your PR and apply changes, mark each conversation as <a href="https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#resolving-conversations" target="_blank">resolved</a>. - If you run into any merge issues, checkout this <a href="https://github.com/skills/resolve-merge-conflicts" target="_blank">Git tutorial</a> to help you resolve merge conflicts and other issues.</p>
<p>When you’re finished with the changes, create a pull request, also known as a PR.</p>
<ul>
<li>Don’t forget to <a href="https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue" target="_blank">link PR to issue</a> if you are solving one.</li>
</ul>
<p>Once you submit your PR, a repository admin will review your proposal. We may ask questions or request additional information.</p>
<ul>
<li><p>We may ask for changes to be made before a PR can be merged, either using <a href="https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request" target="_blank">suggested changes</a> or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes and then commit them to your branch.</p></li>
<li><p>As you update your PR and apply changes, mark each conversation as <a href="https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/commenting-on-a-pull-request#resolving-conversations" target="_blank">resolved</a>.</p></li>
<li><p>If you run into any merge issues, checkout this <a href="https://github.com/skills/resolve-merge-conflicts" target="_blank">Git tutorial</a> to help you resolve merge conflicts and other issues.</p></li>
</ul>
</section>
</section>
<section id="support" class="level2">
Expand Down
7 changes: 3 additions & 4 deletions RAP/rap-expectations.html
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,10 @@ <h1 class="title">RAP expectations</h1>
<section id="rap-expectations" class="level1">
<h1>RAP Expectations</h1>
<hr>
<p>As government analysts working with statistics, we are required to ensure that our analysis is reproducible, transparent, and robust, using coding and code management best practices (source <a href="https://analysisfunction.civilservice.gov.uk/policy-store/competency-framework-for-the-government-statistician-group-gsg/" target="_blank">GSG competency framework</a>). RAP is a cross-government requirement to help analysts adopt best practices.</p>
<p>We expect any analyst working in statistics production to know and be able to implement RAP principles, using the recommended tools to meet at least good and great practice.</p>
<p>As government analysts working with statistics, we are required to ensure that our analysis is reproducible, transparent, and robust, using coding and code management best practices (source <a href="https://analysisfunction.civilservice.gov.uk/policy-store/competency-framework-for-the-government-statistician-group-gsg/" target="_blank">GSG competency framework</a>). Reproducible Analytical Pipelines (RAP) are a cross-government requirement to help analysts adopt best practices.</p>
<p>We expect any analyst to know and be able to implement RAP principles, using the recommended tools to meet at least good and great practice. You can see examples of good, great, and best practice on our <a href="../RAP/rap-statistics.html">RAP in statistics guidance page</a>.</p>
<p>We expect managers of analysts working in statistics production to support and prioritise the development required to build the skills needed to implement RAP using the recommended tools. Managers should ensure that the processes for any publications they own meet at least good and great practice.</p>
<p>More information, including definitions of the different levels of good, great, and best practice is on our <a href="../RAP/rap-statistics.html">RAP in statistics guidance page</a>.</p>
<p>The <a href="https://analysisfunction.civilservice.gov.uk/policy-store/reproducible-analytical-pipelines-strategy/" target="_blank">cross-government RAP strategy</a> states a number of explicit expectations for analysts involved in the process, which are detailed in the following sections: <a href="#analyst-leaders">analyst leaders</a>, <a href="#analyst-managers">analyst managers</a> and <a href="#analysts">analysts</a>.</p>
<p>Although RAP is often discussed in the context of statistics production, RAP principles can also be applied to other analysis work. The <a href="https://analysisfunction.civilservice.gov.uk/policy-store/reproducible-analytical-pipelines-strategy/" target="_blank">cross-government RAP strategy</a> states a number of explicit expectations for analysts involved in the process, which are detailed in the following sections: <a href="#analyst-leaders">analyst leaders</a>, <a href="#analyst-managers">analyst managers</a> and <a href="#analysts">analysts</a>.</p>
<hr>
<section id="analyst-leaders" class="level2">
<h2 class="anchored" data-anchor-id="analyst-leaders">Analyst leaders</h2>
Expand Down
Loading

0 comments on commit 11a25f3

Please sign in to comment.