Skip to content

Commit

Permalink
Render of site
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughthollow committed Dec 5, 2024
1 parent 12be597 commit ae71052
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 87 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.Rhistory
.RData
.Ruserdata

/.quarto/
74 changes: 5 additions & 69 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,74 +1,10 @@
# website-template
# OSS Charter

[Video tutorial](https://youtu.be/YN75YXaLFGM)
Open source software is essential for modern statistical production, fostering transparency in methodology and promoting international collaboration in developing and supporting the production of official statistics.

This is a template for creating a Quarto web site using RStudio.
Consequently, the charter and principles herein on Open Source Software in official statistics in both the production of software, and the adoption of software for statistical production, have been drafted under the HLG-MOS Open-Source Software Project for consideration of endorsement by the UNECE HLG-MOS.

To use it effectively you need to know how to push and pull from GitHub to RStudio using the Git panel buttons, which requires a working GitHub personal access token (PAT). If you don't have one setup, following [these instructions](https://happygitwithr.com/https-pat.html#tldr) in *Happy Git and GitHub for the useR* to set one up. (In short you will create a token for HTTPS and store it using **gitcreds**.)
Be aware that content found here is currently under draft and should not be considered final copy at the current time of writing.

In addition open RStudio and update to the latest version by clicking "Help" "Check for Updates". (This is necessary to ensure that Quarto is installed.)

## ABSOLUTE ESSENTIALS

*If you have any difficulties or have feedback of any kind, please file an issue or communicate through [Discussions](https://github.com/jtr13/website-template/discussions).*

### Copy this template (GitHub)

- [ ] 1. Click the green "Use this template" button above. (You need to login to GitHub to see this option). Choose the "Create a new repository" option. DO NOT FORK THE REPO. Choose a descriptive name for your repo based on your content. (Unlike when you fork a repo, you get to choose the name. If you change your mind before you do any work, delete your new repo and start over.) Leave the "Public" option checked or else GitHub Pages won't work.

### Set up Pages (GitHub)

- [ ] 1. You've now left the template page and are viewing your new repo on GitHub. On the home page, click Settings. Click the "Pages" section on the left. In the **Build and Deployment** section, set **Source** to "Deploy from a branch" (Classic Pages experience) and **Branch** to **main** with **/docs** folder. Click Save.

- [ ] 2. Click the little gear button near "About" on the top right side of the home page of the repo and check the "Use your Github Pages website" box under "Website". Click "Save changes". Test the link and you should see a web site with a stick figure on it. It may take a few minutes to build so if it's not working do a few more steps and then come back to check.

### Copy the repo link (GitHub)

- [ ] 1. Click the green Code button, choose "HTTPS" and copy the link below. It should have the format: `https://github.com/[USERNAME]/[REPO NAME].git`

### Clone the repo (RStudio)

- [ ] 1. Clone your new repo with *File, New Project..., Version Control, Git* in RStudio. You will need to paste the link from the previous step in the Repository URL box. If it's not automatically populated, enter the repo name in the "Project directory name:" box. Choose the location of the project

### Edit `_quarto.yml` (RStudio)

Tip: From the file pane in RStudio, open `README.md`, which contains these instructions. You can delete steps as you complete them.

- [ ] 1. Edit the all caps info in `_quarto.yml` to your info. It's very important to maintain the indenting structure in this file precisely as is -- be careful!

### Render the web site (RStudio)

- [ ] 1. If you haven't already, click "Help" "Check for Updates" to make sure you have the latest version of RStudio (and thus have Quarto installed.)

- [ ] 2. Render the web site locally by clicking the "Build" tap on the right and then "Render Website".

- [ ] 3. Use `browseURL("docs/index.html")` to view your site locally (or just open `docs/index.html` in a browser).

- [ ] 4. If it looks good, commit and push all changed files to GitHub.

(You will need to repeat steps 2 and 4 every time you wish to update the book online.)

### Next steps

- Add content to `index.qmd` as desired.

- Add content to `projects.qmd` as desired.

- Change the photo in the `img` folder to your photo.

- Choose a theme from [https://bootswatch.com/](https://bootswatch.com/) and replace "cerulean" in `_quarto.yml` with your prefered theme.

- Add additional tabs/sections by creating new `.qmd` files and listing them in `_quarto.yml` under `projects.qmd`.

### Additional features

Please consult the official guide to **quarto** web sites: [https://quarto.org/docs/websites/](https://quarto.org/docs/websites/)

### Last but not least

Once you've completed these steps, delete the content of this **README** and add a short description of your project with a link to the book URL. It would be appreciated if you add the following to the end:

*This repo was initially generated from a Quarto template available here: https://github.com/jtr13/website-template.*

(If you found this helpful, please let us know by starring the repo. ⭐ 😄)

*This repo was initially generated from a Quarto template available here: https://github.com/jtr13/website-template.*
10 changes: 5 additions & 5 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ project:
output-dir: docs

website:
title: "MY WEB SITE"
title: "HLG-MOS OSS Charter"
navbar:
left:
- href: index.qmd
text: Home
- projects.qmd
tools:
- icon: twitter
href: https://twitter.com/
- icon: linkedin
href: https://www.linkedin.com/showcase/unece-modernisation-of-official-statistics/
- icon: github
href: https://github.com/YOURUSERNAME/YOURREPO
href: https://github.com/UNECE/OSS_Charter
page-footer:
right: "Built with [Quarto](https://quarto.org/)"
left: "© Copyright 2023, YOUR NAME"
left: "© Copyright 2024, UNECE"

format:
html:
Expand Down
1 change: 1 addition & 0 deletions docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

12 changes: 6 additions & 6 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.3.361">
<meta name="generator" content="quarto-1.3.450">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">


<title>MY WEB SITE - About Me</title>
<title>HLG-MOS OSS Charter - About Me</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
Expand Down Expand Up @@ -70,7 +70,7 @@
<div class="navbar-container container-fluid">
<div class="navbar-brand-container">
<a class="navbar-brand" href="./index.html">
<span class="navbar-title">MY WEB SITE</span>
<span class="navbar-title">HLG-MOS OSS Charter</span>
</a>
</div>
<div id="quarto-search" class="" title="Search"></div>
Expand All @@ -89,8 +89,8 @@
</li>
</ul>
<div class="quarto-navbar-tools ms-auto">
<a href="https://twitter.com/" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-twitter"></i></a>
<a href="https://github.com/YOURUSERNAME/YOURREPO" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-github"></i></a>
<a href="https://www.linkedin.com/showcase/unece-modernisation-of-official-statistics/" rel="" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-linkedin"></i></a>
<a href="https://github.com/UNECE/OSS_Charter" rel="" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-github"></i></a>
</div>
</div> <!-- /navcollapse -->
</div> <!-- /container-fluid -->
Expand Down Expand Up @@ -364,7 +364,7 @@ <h2 data-anchor-id="experience">Experience</h2>
</div> <!-- /content -->
<footer class="footer">
<div class="nav-footer">
<div class="nav-footer-left">© Copyright 2023, YOUR NAME</div>
<div class="nav-footer-left">© Copyright 2024, UNECE</div>
<div class="nav-footer-center">
&nbsp;
</div>
Expand Down
12 changes: 6 additions & 6 deletions docs/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.3.361">
<meta name="generator" content="quarto-1.3.450">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">


<title>MY WEB SITE - Projects</title>
<title>HLG-MOS OSS Charter - Projects</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
Expand Down Expand Up @@ -71,7 +71,7 @@
<div class="navbar-container container-fluid">
<div class="navbar-brand-container">
<a class="navbar-brand" href="./index.html">
<span class="navbar-title">MY WEB SITE</span>
<span class="navbar-title">HLG-MOS OSS Charter</span>
</a>
</div>
<div id="quarto-search" class="" title="Search"></div>
Expand All @@ -90,8 +90,8 @@
</li>
</ul>
<div class="quarto-navbar-tools ms-auto">
<a href="https://twitter.com/" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-twitter"></i></a>
<a href="https://github.com/YOURUSERNAME/YOURREPO" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-github"></i></a>
<a href="https://www.linkedin.com/showcase/unece-modernisation-of-official-statistics/" rel="" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-linkedin"></i></a>
<a href="https://github.com/UNECE/OSS_Charter" rel="" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-github"></i></a>
</div>
</div> <!-- /navcollapse -->
</div> <!-- /container-fluid -->
Expand Down Expand Up @@ -381,7 +381,7 @@ <h2 class="anchored" data-anchor-id="project-3">Project 3</h2>
</div> <!-- /content -->
<footer class="footer">
<div class="nav-footer">
<div class="nav-footer-left">© Copyright 2023, YOUR NAME</div>
<div class="nav-footer-left">© Copyright 2024, UNECE</div>
<div class="nav-footer-center">
&nbsp;
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/site_libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

0 comments on commit ae71052

Please sign in to comment.