Skip to content

Commit

Permalink
docs; makefile->autotools
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-james committed Jan 9, 2024
1 parent 1332bfc commit 1c75b4b
Show file tree
Hide file tree
Showing 102 changed files with 10,026 additions and 79 deletions.
4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/conf.py
configuration: docs/pydocs/conf.py

# Optionally build your docs in additional formats such as PDF and ePub
# formats:
Expand All @@ -29,4 +29,4 @@ sphinx:
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
- requirements: pydocs/requirements.txt
77 changes: 0 additions & 77 deletions Makefile

This file was deleted.

22 changes: 22 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Makefile.am

document:
Rscript -e "devtools::document(roclets = c('rd', 'collate', 'namespace'))"

buildbin:
Rscript -e "devtools::build(binary = TRUE, args = c('--preclean'))"

buildsrc:
Rscript -e "devtools::build(args=c('--no-buildvignettes'))"

install:
Rscript -e "devtools::install_local(force=TRUE, upgrade=FALSE)"

test:
Rscript -e "devtools::test()"

site:
Rscript -e "pkgdown::build_site(preview=FALSE)"


all-local: document buildsrc buildbin install test site
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
destination: "docs/rdocs"
37 changes: 37 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
AC_INIT([benj], [0.0.7])
AC_CHECK_PROG([R_FOUND], [R], [yes], [no])
if test "x$R_FOUND" = xno; then
AC_MSG_ERROR([R is required but it's not installed.])
fi
AC_CHECK_PROG([WGET_FOUND], [wget], [yes], [no])
if test "x$WGET_FOUND" = xno; then
AC_MSG_ERROR([wget is required but it's not installed.])
fi
AC_PROG_MAKE_SET

# Automake initialization
AM_INIT_AUTOMAKE([foreign])

# Define the directory where files should be downloaded
TENX_DIR="inst/extdata/10x"
AC_SUBST(TENX_DIR)

# Create the extdata directory if it does not exist
AC_MSG_CHECKING([for inst/extdata directory])
AS_MKDIR_P([${TENX_DIR}])
AC_MSG_RESULT([created])

# Download files using wget if they don't exist
AC_MSG_CHECKING([for required files])
REQUIRED_FILES="Dual_Index_Kit_TT_Set_A.csv Dual_Index_Kit_NN_Set_A.csv Dual_Index_Kit_NT_Set_A.csv Single_Index_Kit_T_Set_A.csv Single_Index_Kit_N_Set_A.csv"
for file in $REQUIRED_FILES; do
if test ! -f "${TENX_DIR}/$file"; then
AC_MSG_RESULT([missing $file, downloading...])
wget -P ${TENX_DIR} --no-check-certificate "https://cdn.10xgenomics.com/raw/upload/v1655151897/support/in-line documents/$file"
else
AC_MSG_RESULT([found $file])
fi
done

AC_CONFIG_FILES([Makefile])
AC_OUTPUT
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
93 changes: 93 additions & 0 deletions docs/rdocs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1c75b4b

Please sign in to comment.