-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from progval/build-crosswalks
Use native Hugo templating to generate crosswalks
- Loading branch information
Showing
51 changed files
with
222 additions
and
2,655 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
all: data/crosswalk.json | ||
|
||
# Download the latest crosswalk | ||
data/crosswalk.csv: | ||
wget https://github.com/codemeta/codemeta/raw/master/crosswalk.csv -O data/crosswalk.csv | ||
|
||
# Convert crosswalk.csv to crosswalk.json so Hugo can parse it | ||
data/crosswalk.json: data/crosswalk.csv | ||
python3 scripts/crosswalk_to_json.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
# CodeMeta Website | ||
|
||
This website is written in [Hugo](https://hugodocs.info). Hugo is the static website engine behind the wonderful RStudio package `blogdown`, and is fast, popular, and easy to install and theme. See the [Hugo docs](https://hugodocs.info) for a quick orientation on how the site is organized. `blogdown` makes it easy to run Hugo from the RStudio editor and include R code in `.Rmd` content in Hugo sites. | ||
This website is written in [Hugo](https://hugodocs.info). Hugo is a static website engine, which is fast, popular, and easy to install and theme. See the [Hugo docs](https://hugodocs.info) for a quick orientation on how the site is organized. | ||
|
||
To build and preview the site from RStudio, just use `blogdown::serve_site()`. `blogdown::install_hugo()` will get you set up the first time. | ||
Before building the site, you should run the `make` command, in order to download the crosswalk locally; which is used by Hugo to generate the content of crosswalk pages. | ||
|
||
Then, at your option: | ||
|
||
* To build the site to `../website`, run `hugo`. You may then open that folder in your browser, or | ||
* To previous the site directly without RStudio, run `hugo serve`, which will make the site available at http://localhost:1313/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Crosswalk for R Packages" | ||
image: "/img/R.png" | ||
date: "2017-06-01" | ||
--- | ||
|
||
The following table displays the crosswalk mapping of terms from the R package DESCRIPTION file to codemeta properties. | ||
|
||
{{< crosswalk name="R Package Description" >}} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.