Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Aug 11, 2024
1 parent 7219e20 commit 8e86e28
Show file tree
Hide file tree
Showing 65 changed files with 328 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
db5011dd
1bde7bb0
2 changes: 1 addition & 1 deletion admins/cluster-config.html
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ <h3 class="anchored" data-anchor-id="cluster-name">Cluster name</h3>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/credentials.html
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ <h3 class="anchored" data-anchor-id="service-accounts">Service Accounts</h3>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/deployments/datahub.html
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ <h2 class="anchored" data-anchor-id="resources">Resources</h2>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/deployments/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ <h1 class="title">Hub Deployments</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/deployments/stat159.html
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ <h2 class="anchored" data-anchor-id="historical-information">Historical Informat
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
6 changes: 3 additions & 3 deletions admins/howto/calendar-scaler.html
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ <h3 class="anchored" data-anchor-id="working-on-testing-and-deploying-the-calend
<p>The method for testing <code>scaler/scaler.py</code> is similar to above, but the only things you’ll be able test locally are the <code>make_deployment()</code> and <code>get_replica_counts()</code> functions.</p>
<p>When you’re ready, create a PR. The deployment workflow is as follows:</p>
<ol type="1">
<li>Get all authed-up for <code>chartpress</code> by performing the steps listed <a href="https://docs.datahub.berkeley.edu/en/latest/admins/howto/rebuild-hub-image.html#">here</a>.</li>
<li>Get all authed-up for <code>chartpress</code> by performing the <a href="../../admins/howto/rebuild-hub-image.html">documented steps</a>.</li>
<li>Run <code>chartpress --push</code> from the root <code>datahub/</code> directory. If this succeeds, check your <code>git status</code> and add <code>datahub/node-placeholder/Chart.yaml</code> and <code>datahub/node-placeholder/values.yml</code> to your PR.</li>
<li>Merge to <code>staging</code> and then <code>prod</code>.</li>
</ol>
Expand All @@ -513,7 +513,7 @@ <h3 class="anchored" data-anchor-id="changing-python-imports">Changing python im
<li>Edit <code>requirements.in</code> and save your changes.</li>
<li>Execute <code>pip-compile requirements.in</code>, which will update the <code>requirements.txt</code>.</li>
<li>Check your git status and diffs, and create a pull request if necessary.</li>
<li>Get all authed-up for <code>chartpress</code> by performing the steps listed <a href="https://docs.datahub.berkeley.edu/en/latest/admins/howto/rebuild-hub-image.html#">here</a>.</li>
<li>Get all authed-up for <code>chartpress</code> by performing the <a href="../../admins/howto/rebuild-hub-image.html">documented steps</a>.</li>
<li>Run <code>chartpress --push</code> from the root <code>datahub/</code> directory. If this succeeds, check your <code>git status</code> and add <code>datahub/node-placeholder/Chart.yaml</code> and <code>datahub/node-placeholder/values.yml</code> to your PR.</li>
<li>Merge to <code>staging</code> and then <code>prod</code>.</li>
</ol>
Expand Down Expand Up @@ -626,7 +626,7 @@ <h2 class="anchored" data-anchor-id="monitoring">Monitoring</h2>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
7 changes: 3 additions & 4 deletions admins/howto/clusterswitch.html
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,7 @@ <h1 class="title">Switching over a hub to a new cluster</h1>
<section id="create-a-new-cluster" class="level2">
<h2 class="anchored" data-anchor-id="create-a-new-cluster">Create a new cluster</h2>
<ol type="1">
<li>Create a new cluster using the specifications here:<br>
https://docs.datahub.berkeley.edu/en/latest/admins/cluster-config.html</li>
<li>Create a new cluster using the specified <a href="../../admins/cluster-config.html">configuration</a>.</li>
<li>Set up helm on the cluster according to the instructions here:<br>
http://z2jh.jupyter.org/en/latest/setup-helm.html
<ul>
Expand Down Expand Up @@ -487,7 +486,7 @@ <h2 class="anchored" data-anchor-id="install-and-configure-the-certificate-manag
</section>
<section id="create-the-node-placeholder-k8s-namespace" class="level2">
<h2 class="anchored" data-anchor-id="create-the-node-placeholder-k8s-namespace">Create the node-placeholder k8s namespace</h2>
<p>The <a href="https://docs.datahub.berkeley.edu/en/latest/admins/howto/calendar-scaler.html">calendar autoscaler</a> requires the <code>node-placeholder</code> namespace. Run the following command to create it:</p>
<p>The <a href="../../admins/howto/calendar-scaler.html">calendar autoscaler</a> requires the <code>node-placeholder</code> namespace. Run the following command to create it:</p>
<div class="sourceCode" id="cb3"><pre class="sourceCode bash code-with-copy"><code class="sourceCode bash"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="ex">kubectl</span> create namespace node-placeholder</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</section>
<section id="create-a-new-static-ip-and-switch-dns-to-point-our-new-deployment-at-it." class="level2">
Expand Down Expand Up @@ -648,7 +647,7 @@ <h2 class="anchored" data-anchor-id="deleting-the-old-cluster">Deleting the old
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/core-pool.html
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ <h2 class="anchored" data-anchor-id="deploy-a-new-core-node-pool">Deploy a New C
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/course-config.html
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ <h2 class="anchored" data-anchor-id="housekeeping">Housekeeping</h2>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/delete-hub.html
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ <h2 class="anchored" data-anchor-id="steps-to-spin-down-a-hub">Steps to spin dow
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/dns.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ <h3 class="anchored" data-anchor-id="delete-a-record">Delete a record</h3>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/github-token.html
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ <h1 class="title">Create Finely Grained Access Token</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/google-sheets.html
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ <h2 class="anchored" data-anchor-id="gspread-pandas-sample-code"><code>gspread-p
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ <h1 class="title">Common Administrator Tasks</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
4 changes: 2 additions & 2 deletions admins/howto/new-hub.html
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ <h3 class="anchored" data-anchor-id="create-placeholder-node-pool">Create placeh
<span id="cb13-16"><a href="#cb13-16" aria-hidden="true" tabindex="-1"></a><span class="kw">(</span><span class="ex">gcpdev</span><span class="kw">)</span> <span class="ex"></span> ~ <span class="co"># subtract the sum of the second command's values from the first value, then subtract another 277872640 bytes for wiggle room</span></span>
<span id="cb13-17"><a href="#cb13-17" aria-hidden="true" tabindex="-1"></a><span class="kw">(</span><span class="ex">gcpdev</span><span class="kw">)</span> <span class="ex"></span> ~ <span class="co"># in this case: (60055600Ki - (100Mi + 100Mi + 60Mi + 16Mi)) - 256Mi</span></span>
<span id="cb13-18"><a href="#cb13-18" aria-hidden="true" tabindex="-1"></a><span class="kw">(</span><span class="ex">gcpdev</span><span class="kw">)</span> <span class="ex"></span> ~ <span class="co"># (61496934400 - (104857600 + 104857600 + 16777216 + 62914560)) - 277872640 == 60929654784</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<p>Besides setting defaults, we can dynamically change the placeholder counts by either adding new, or editing existing, <a href="https://docs.datahub.berkeley.edu/en/latest/admins/howto/calendar-scaler.html">calendar events</a>. This is useful for large courses which can have placeholder nodes set aside for predicatable periods of heavy ramp up.</p>
<p>Besides setting defaults, we can dynamically change the placeholder counts by either adding new, or editing existing, <a href="../../admins/howto/calendar-scaler.html">calendar events</a>. This is useful for large courses which can have placeholder nodes set aside for predicatable periods of heavy ramp up.</p>
</section>
<section id="commit-and-deploy-staging" class="level3">
<h3 class="anchored" data-anchor-id="commit-and-deploy-staging">Commit and deploy staging</h3>
Expand Down Expand Up @@ -778,7 +778,7 @@ <h3 class="anchored" data-anchor-id="commit-and-deploy-staging">Commit and deplo
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/new-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ <h2 class="anchored" data-anchor-id="submitting-a-pull-request">Submitting a pul
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/new-packages.html
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ <h2 class="anchored" data-anchor-id="tips-for-upgrading-package">Tips for Upgrad
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/preview-local.html
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ <h2 class="anchored" data-anchor-id="render-static-html">Render Static HTML</h2>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/prometheus-grafana.html
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ <h1>Grafana</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/rebuild-hub-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ <h1 class="title">Customize the Hub Docker Image</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/rebuild-postgres-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ <h1 class="title">Customize the Per-User Postgres Docker Image</h1>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/howto/remove-users-orm.html
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ <h2 class="anchored" data-anchor-id="run-the-script">Run the script</h2>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/pre-reqs.html
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ <h2 class="anchored" data-anchor-id="full">Full</h2>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/storage.html
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ <h2 class="anchored" data-anchor-id="nfs-client">NFS Client</h2>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
2 changes: 1 addition & 1 deletion admins/structure.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ <h2 class="anchored" data-anchor-id="documentation">Documentation</h2>
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
1 change: 0 additions & 1 deletion en/latest

This file was deleted.

14 changes: 14 additions & 0 deletions en/latest/admin/howto/new-hub.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Redirect</title>
<script type="text/javascript">
var redirects = {"":"../../../../admins/howto/new-hub.html"};
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
var redirect = redirects[hash] || redirects[""] || "/";
window.document.title = 'Redirect to ' + redirect;
window.location.replace(redirect);
</script>
</head>
<body>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var filterRegex = new RegExp("https:\/\/docs\.datahub\.berkeley\.edu");
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
Expand Down
Loading

0 comments on commit 8e86e28

Please sign in to comment.