This is an automated email from the ASF dual-hosted git repository.
thisisnic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 05620b186f GH-14969: [R][Docs] Enable pkgdown built-in search (#36374)
05620b186f is described below
commit 05620b186f2d27fd9d28dab010c2fa58e67c0ce7
Author: eitsupi <[email protected]>
AuthorDate: Mon Jul 10 18:25:35 2023 +0900
GH-14969: [R][Docs] Enable pkgdown built-in search (#36374)
### Rationale for this change
Enable local search of pkgdown site.
### What changes are included in this PR?
Remove some files that are not currently in use.
### Are these changes tested?
There is no test, but the following functions can be run to verify that the
site is working properly.
```r
pkgdown::init_site("r")
pkgdown::build_search("r")
pkgdown::build_home("r")
```
### Are there any user-facing changes?
No. Document changes only.
* Closes: #14969
Authored-by: SHIMA Tatsuya <[email protected]>
Signed-off-by: Nic Crane <[email protected]>
---
r/pkgdown/extra.js | 66 ----------------------------------------
r/vignettes/developers/setup.Rmd | 2 +-
2 files changed, 1 insertion(+), 67 deletions(-)
diff --git a/r/pkgdown/extra.js b/r/pkgdown/extra.js
deleted file mode 100644
index 4e67262ec1..0000000000
--- a/r/pkgdown/extra.js
+++ /dev/null
@@ -1,66 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-(function () {
- // Load the rmarkdown tabset script
- var script = document.createElement("script");
- script.type = "text/javascript";
- script.async = true;
- script.src =
-
"https://cdn.jsdelivr.net/gh/rstudio/rmarkdown@47d837d3d9cd5e8e212b05767454f058db7d2789/inst/rmd/h/navigation-1.1/tabsets.js";
- script.integrity = "sha256-Rs54TE1FCN1uLM4f7VQEMiRTl1Ia7TiQLkMruItwV+Q=";
- script.crossOrigin = "anonymous";
-
- // Run the processing as the onload callback
- script.onload = () => {
- // Monkey patch the .html method to use the .text method
- $(document).ready(function () {
- (function ($) {
- $.fn.html = function (content) {
- return this.text();
- };
- })(jQuery);
-
- window.buildTabsets("toc");
- });
-
- $(document).ready(function () {
- $(".tabset-dropdown > .nav-tabs > li").click(function () {
- $(this).parent().toggleClass("nav-tabs-open");
- });
- });
-
- $(document).ready(function () {
- /**
- * The tabset creation above sometimes relies on empty headers to stop
the
- * tabbing. Though they shouldn't be included in the TOC in the first
place,
- * this will remove empty headers from the TOC after it's created.
- */
-
- // find all the empty <a> elements and remove them (and their parents)
- var empty_a = $("#toc").find("a").filter(":empty");
- empty_a.parent().remove();
-
- // now find any empty <ul>s and remove them too
- var empty_ul = $("#toc").find("ul").filter(":empty");
- empty_ul.remove();
- });
-
- };
-
- document.head.appendChild(script);
-})();
diff --git a/r/vignettes/developers/setup.Rmd b/r/vignettes/developers/setup.Rmd
index 11b7cf2906..479af577aa 100644
--- a/r/vignettes/developers/setup.Rmd
+++ b/r/vignettes/developers/setup.Rmd
@@ -87,7 +87,7 @@ If you need to alter both libarrow and the R package code, or
if you can't get a
There are five major steps to the process.
-### Step 1 - Install dependencies {.tabset}
+### Step 1 - Install dependencies
When building libarrow, by default, system dependencies will be used if
suitable versions are found. If system dependencies are not present, libarrow
will build them during its own build process. The only dependencies that you
need to install _outside_ of the build process are [cmake](https://cmake.org/)
(for configuring the build) and [openssl](https://www.openssl.org/) if you are
building with S3 support.