Skip to content

Commit

Permalink
Add and update content to deploy site: (#26)
Browse files Browse the repository at this point in the history
- Add logo
- Add SCSS variables and CSS rules
- Convert vignette title from yaml to h1 in order to circumvent an issue
  in adodownr
  • Loading branch information
arthur-shaw authored May 9, 2024
1 parent 423de12 commit 39c6a11
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
!CONTRIBUTING.md
!LICENSE*

# Track files related to doc site's style and structure
!src/dev/assets/*

* Unignore reproot files
!reproot*.yaml

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# `selector`

Select variables by characteristic (char) or regular expression (regex)
<!--
TODO: uncomment when logo is posted

<img src='src/dev/assets/logo.png' align="right" height="139" />
-->


<!-- badges: start -->
[![Lifecycle:
Expand Down
Binary file added src/dev/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/dev/assets/selector_site_theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*-- scss:defaults --*/

// nav bar
$navbar-bg: #483955;
$navbar-fg: white;
// body
$body-bg: white;
// font color
// $link-color: #a6e3a1;

/*-- scss:rules --*/

// set package title's background color to the page's
h1 > code {
background-color: $body-bg;
}

// use Stata IDE colors
// exclude README's Stata blocks for readability
pre > code:not(.stata) , p > code {
background-color: #252526 !important;
// results
color: #b4ffb4;
}
4 changes: 1 addition & 3 deletions src/vignettes/how-to-create-qnr-metadata-dta.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: How to create a questionnaire metadata data set from the JSON file
---
# How to create a questionnaire metadata data set from the JSON file

To create a questionnaire metadata data set, one must:

Expand Down
4 changes: 1 addition & 3 deletions src/vignettes/how-to-get-questionnaire-json.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
title: How to get the questionnaire JSON file
---
# How to get the questionnaire JSON file

There are two methods for getting the questionnaire JSON file:

Expand Down

0 comments on commit 39c6a11

Please sign in to comment.