Skip to content

Commit

Permalink
try jquery upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
espinielli committed Mar 6, 2024
1 parent bf81b6c commit d242a73
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 25 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ jobs:
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
run: |
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
url_pkgdown <- '<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>'
url_new <- '<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.js" integrity="sha512-+k1pnlgt4F1H8L7t3z95o3/KO+o78INEcXTbnoJQ/F2VqDVhWoaiVml/OEHv9HsVgxUaVW+IbiZPUJQfF/YxZw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>'
for (file in list.files('docs/', pattern = "*.html", full.names = TRUE, recursive = TRUE)) {
readLines(file) |>
sub(pattern = url_pkgdown, replacement = url_new, x = _, fixed = TRUE) |>
writeLines(file)
}
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
Expand Down
20 changes: 20 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,23 @@ that regulates the [pubblication of aeronautical information][airac]
[nm-cfmu]: <https://www.eurocontrol.int/network-manager> "Network Manager - EUROCONTROL"
[cpr]: <https://ansperformance.eu/acronym/cpr/> "Correlated Position Report"
[osn]: <https://opensky-network.org/> "OpenSky Network"


### Building the documentation

# Development

In order to build the relevant `pkgdown` web pages while developing,
execute the following code:

```{r, eval=FALSE}
# How to build the pakgdown from behind proxied Internet
library(withr)
library(pkgdown)
with_options(list(pkgdown.internet = FALSE),
build_site())
```

63 changes: 39 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,30 +43,28 @@ remotes::install_github("euctrl-pru/trrrj")

There are functions that allow you to:

- Load trajectories from various providers/sources:
- [Flightradar24](https://www.flightradar24.com/ "Flightradar24")’s
archived/live feed files (ADS-B)
- [Flightradar24](https://www.flightradar24.com/ "Flightradar24")’s
live feed from EUROCONTROL’s DB (ADS-B)
- [Network
Manager](https://www.eurocontrol.int/network-manager "Network Manager - EUROCONTROL")’s
archived CPR files (see CPRs in the [Notes](#notes))
- [DDR2](https://www.eurocontrol.int/ddr "Demand Data Repository - EUROCONTROL")’s
SO6 trajectories from EUROCONTROL’s DB (Flight plan and CPR
based)
- [OpenSky
Network](https://opensky-network.org/ "OpenSky Network")’s
historical data, **removed** see [osn
package](https://github.com/espinielli/osn)
- Plot trajectories
- 2D plot
- vertical profiles (time or distance based)
- Analyse trajectories (Under work: more to come\!)
- extract level flight segments
- Read/transform/*save your day*
- parse Longitude/Latitude in various formats
- determine the AIRAC cyle for a date or its range (ICAO or CFMU
format); see AIRAC in the [Notes](#notes)
- Load trajectories from various providers/sources:
- [Flightradar24](https://www.flightradar24.com/ "Flightradar24")’s
archived/live feed files (ADS-B)
- [Flightradar24](https://www.flightradar24.com/ "Flightradar24")’s
live feed from EUROCONTROL’s DB (ADS-B)
- [Network
Manager](https://www.eurocontrol.int/network-manager "Network Manager - EUROCONTROL")’s
archived CPR files (see CPRs in the [Notes](#notes))
- [DDR2](https://www.eurocontrol.int/ddr "Demand Data Repository - EUROCONTROL")’s
SO6 trajectories from EUROCONTROL’s DB (Flight plan and CPR based)
- [OpenSky Network](https://opensky-network.org/ "OpenSky Network")’s
historical data, **removed** see [osn
package](https://github.com/espinielli/osn)
- Plot trajectories
- 2D plot
- vertical profiles (time or distance based)
- Analyse trajectories (Under work: more to come!)
- extract level flight segments
- Read/transform/*save your day*
- parse Longitude/Latitude in various formats
- determine the AIRAC cyle for a date or its range (ICAO or CFMU
format); see AIRAC in the [Notes](#notes)

## Data

Expand Down Expand Up @@ -95,3 +93,20 @@ information
An AIRAC (Aeronautical Information Regulation And Control) cycle is the
28-day period that regulates the [pubblication of aeronautical
information](https://en.wikipedia.org/wiki/Aeronautical_Information_Publication "AIP - Aeronautical Information Publication")

### Building the documentation

# Development

In order to build the relevant `pkgdown` web pages while developing,
execute the following code:

``` r

# How to build the pakgdown from behind proxied Internet
library(withr)
library(pkgdown)

with_options(list(pkgdown.internet = FALSE),
build_site())
```

0 comments on commit d242a73

Please sign in to comment.