Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Restructuration de la doc #112

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript "dev/deploy.R"
Rscript "dev/tools/deploy.R"
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript "dev/deploy.R"
Rscript "dev/tools/deploy.R"
13 changes: 13 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
lang: fr

articles:
- title: Utiliser `{shinygouv}`
navbar: ~
contents:
- A-convertir-une-app-shiny-en-app-shiny-dsfr
- B-comment-demarrer-une-nouvelle-application-shiny-dsfr

- title: Developper `{shinygouv}`
desc: Vignettes à l'intention des mainteneurs de `{shingouv}`
contents:
- starts_with("Dev")
47 changes: 47 additions & 0 deletions dev/02_dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,57 @@
#### CURRENT FILE: DEV SCRIPT #####
###################################


# ==== Each time needed ====
# Dependencies ----
## Ce qu'il faut avant d'envoyer sur le serveur
# devtools::install_github("ThinkR-open/attachment")
# attachment::att_amend_desc(extra.suggests = c("bookdown"))
# attachment::create_dependencies_file()
attachment::att_amend_desc()
# Cela est normal : "Error in eval(x, envir = envir) : object 'db_local' not found"

devtools::build_readme()

check_n_covr <- function() {
res <- devtools::check(args = c("--no-tests"))
print(res)
covr::package_coverage(type = "tests", quiet = TRUE)
}

check_n_covr()
# fusen::check_n_covr()

# Verifier que les md sont disponibles dans le dossier dev/documentation,
# sinon knit les Rmd en modifiant l'output par github_document

# Utils for dev ----
# Get global variables
checkhelper::print_globals()
# styler the package
# install.packages("grkstyle", repos = "https://gadenbuie.r-universe.dev")
grkstyle::grk_style_pkg(pkg = ".")
# linter
lintr::lint_package()
# bump version
desc::desc_bump_version("patch")
# Install
devtools::install(upgrade = "never")
# devtools::load_all()
devtools::check(vignettes = TRUE)
# ascii
stringi::stri_trans_general("è", "hex")
# Create a summary readme for the testthat subdirectory
covrpage::covrpage()

# Documentation and dev ----
charpente::get_dependency_versions("@gouvfr/dsfr")

# Engineering: to do everytime
# => In dev/dev_history_package.R



# ==== To do once with {golem} ====
## Add modules ----
## Create a module infrastructure in R/
Expand Down
102 changes: 0 additions & 102 deletions dev/dev_history_connect.R

This file was deleted.

97 changes: 0 additions & 97 deletions dev/dev_history_deliverables.R

This file was deleted.

Loading