Skip to content

Commit

Permalink
DOC-2688: Fix target=_blank without noopener issue (cockroachdb#13396)
Browse files Browse the repository at this point in the history
Fixes DOC-2688
  • Loading branch information
nickvigilante authored Apr 4, 2022
1 parent 2323705 commit 4bb403d
Show file tree
Hide file tree
Showing 22 changed files with 27 additions and 27 deletions.
4 changes: 2 additions & 2 deletions _includes/v20.1/prod-deployment/node-shutdown.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<ul>
<li>If the node was started with a process manager, gracefully stop the node by sending <code>SIGTERM</code> with the process manager. If the node is not shutting down after 1 minute, send <code>SIGKILL</code> to terminate the process. When using <code><a href="https://www.freedesktop.org/wiki/Software/systemd/" target="_blank">systemd</a></code>, for example, set <code>TimeoutStopSec=60</code> in your configuration template and run <code>systemctl stop &lt;systemd config filename&gt;</code> to stop the node without <code>systemd</code> restarting it.</li>
<li>If the node was started with a process manager, gracefully stop the node by sending <code>SIGTERM</code> with the process manager. If the node is not shutting down after 1 minute, send <code>SIGKILL</code> to terminate the process. When using <code><a href="https://www.freedesktop.org/wiki/Software/systemd/" target="_blank" rel="noopener">systemd</a></code>, for example, set <code>TimeoutStopSec=60</code> in your configuration template and run <code>systemctl stop &lt;systemd config filename&gt;</code> to stop the node without <code>systemd</code> restarting it.</li>
<div class="bs-callout bs-callout--info"><div class="bs-callout__label">Note:</div>
<p>The amount of time you should wait before sending <code>SIGKILL</code> can vary depending on your cluster configuration and workload, which affects how long it takes your nodes to complete a graceful shutdown. In certain edge cases, forcefully terminating the process before the node has completed shutdown can result in temporary data unavailability, latency spikes, uncertainty errors, ambiguous commit errors, or query timeouts. If you need maximum cluster availability, you can run <a href="cockroach-node.html"><code>cockroach node drain</code></a> prior to node shutdown and actively monitor the draining process instead of automating it.</p>
</div>
<li>If the node was started using <a href="cockroach-start.html"><code>cockroach start</code></a> and is running in the foreground, press <code>ctrl-c</code> in the terminal.</li>
<li>If the node was started using <a href="cockroach-start.html"><code>cockroach start</code></a> and the <code>--background</code> and <code>--pid-file</code> flags, run <code>kill &lt;pid&gt;</code>, where <code>&lt;pid&gt;</code> is the process ID of the node.</li>
</ul>
</ul>
2 changes: 1 addition & 1 deletion _includes/v20.2/prod-deployment/node-shutdown.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ul>
<li>If the node was started with a process manager, gracefully stop the node by sending <code>SIGTERM</code> with the process manager. If the node is not shutting down after 1 minute, send <code>SIGKILL</code> to terminate the process. When using <code><a href="https://www.freedesktop.org/wiki/Software/systemd/" target="_blank">systemd</a></code>, for example, set <code>TimeoutStopSec=60</code> in your configuration template and run <code>systemctl stop &lt;systemd config filename&gt;</code> to stop the node without <code>systemd</code> restarting it.</li>
<li>If the node was started with a process manager, gracefully stop the node by sending <code>SIGTERM</code> with the process manager. If the node is not shutting down after 1 minute, send <code>SIGKILL</code> to terminate the process. When using <code><a href="https://www.freedesktop.org/wiki/Software/systemd/" target="_blank" rel="noopener">systemd</a></code>, for example, set <code>TimeoutStopSec=60</code> in your configuration template and run <code>systemctl stop &lt;systemd config filename&gt;</code> to stop the node without <code>systemd</code> restarting it.</li>
<div class="bs-callout bs-callout--info"><div class="bs-callout__label">Note:</div>
<p>The amount of time you should wait before sending <code>SIGKILL</code> can vary depending on your cluster configuration and workload, which affects how long it takes your nodes to complete a graceful shutdown. In certain edge cases, forcefully terminating the process before the node has completed shutdown can result in temporary data unavailability, latency spikes, uncertainty errors, ambiguous commit errors, or query timeouts. If you need maximum cluster availability, you can run <a href="cockroach-node.html"><code>cockroach node drain</code></a> prior to node shutdown and actively monitor the draining process instead of automating it.</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _includes/v21.1/prod-deployment/node-shutdown.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<ul>
<li>If the node was started with a process manager, gracefully stop the node by sending <code>SIGTERM</code> with the process manager. If the node is not shutting down after 1 minute, send <code>SIGKILL</code> to terminate the process. When using <code><a href="https://www.freedesktop.org/wiki/Software/systemd/" target="_blank">systemd</a></code>, for example, set <code>TimeoutStopSec=60</code> in your configuration template and run <code>systemctl stop &lt;systemd config filename&gt;</code> to stop the node without <code>systemd</code> restarting it.</li>
<li>If the node was started with a process manager, gracefully stop the node by sending <code>SIGTERM</code> with the process manager. If the node is not shutting down after 1 minute, send <code>SIGKILL</code> to terminate the process. When using <code><a href="https://www.freedesktop.org/wiki/Software/systemd/" target="_blank" rel="noopener">systemd</a></code>, for example, set <code>TimeoutStopSec=60</code> in your configuration template and run <code>systemctl stop &lt;systemd config filename&gt;</code> to stop the node without <code>systemd</code> restarting it.</li>
<div class="bs-callout bs-callout--info"><div class="bs-callout__label">Note:</div>
<p>The amount of time you should wait before sending <code>SIGKILL</code> can vary depending on your cluster configuration and workload, which affects how long it takes your nodes to complete a graceful shutdown. In certain edge cases, forcefully terminating the process before the node has completed shutdown can result in temporary data unavailability, latency spikes, uncertainty errors, ambiguous commit errors, or query timeouts. If you need maximum cluster availability, you can run <a href="cockroach-node.html"><code>cockroach node drain</code></a> prior to node shutdown and actively monitor the draining process instead of automating it.</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _layouts/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ <h6 class="card-title font-weight-bold mt-3">
</div>
</div>
<div class="text-center mb-5">
<a class="btn btn-redirect mt-3 text-inherit" target="_blank" href="https://www.cockroachlabs.com/blog/">Check out the blog</a>
<a class="btn btn-redirect mt-3 text-inherit" target="_blank" rel="noopener" href="https://www.cockroachlabs.com/blog/">Check out the blog</a>
</div>

</div>
2 changes: 1 addition & 1 deletion cockroachcloud/learn-cockroachdb-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This tutorial walks you through some of the most essential CockroachDB SQL state
Make sure you have already [connected the CockroachDB SQL client](connect-to-your-cluster.html#step-3-connect-to-your-cluster) to your cluster. Alternatively, you can [use a local demo cluster](../{{site.versions["stable"]}}/learn-cockroachdb-sql.html) or click below to run through the tutorial entirely in your browser.

<div class=" clearfix">
<a class="btn btn-outline-primary" href="../tutorials/learn-cockroachdb-sql-interactive.html" target="_blank">Run this in your browser &rarr;</a>
<a class="btn btn-outline-primary" href="../tutorials/learn-cockroachdb-sql-interactive.html" target="_blank" rel="noopener">Run this in your browser &rarr;</a>
</div>

## Create a database
Expand Down
2 changes: 1 addition & 1 deletion js/customscripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ $(function() {
}

return this.hostname && this.hostname !== location.hostname;
}).addClass('external').attr("target","_blank");
}).addClass('external').attr("target","_blank").addClass('external').attr("rel","noopener");
});


Expand Down
2 changes: 1 addition & 1 deletion v1.0/cockroachdb-in-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ This page shows you how key features of CockroachDB stack up against other datab
<span class="support" data-dbs='["MySQL", "PostgreSQL", "Cassandra", "HBase", "MongoDB"]'>Yes</span>
<span class="support gray" data-dbs='["Oracle", "SQL Server", "DynamoDB", "Spanner"]'>No</span>
</td>
<td><a class="comparison-chart__link" href="https://wiki.crdb.io/wiki/spaces/CRDB/pages/73204033/Contributing+to+CockroachDB" target="_blank">Yes</a></td>
<td><a class="comparison-chart__link" href="https://wiki.crdb.io/wiki/spaces/CRDB/pages/73204033/Contributing+to+CockroachDB" target="_blank" rel="noopener">Yes</a></td>
</tr>
<tr>
<td class="comparison-chart__feature">
Expand Down
2 changes: 1 addition & 1 deletion v1.1/cockroachdb-in-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ This page shows you how key features of CockroachDB stack up against other datab
<span class="support" data-dbs='["MySQL", "PostgreSQL", "Cassandra", "HBase", "MongoDB"]'>Yes</span>
<span class="support gray" data-dbs='["Oracle", "SQL Server", "DynamoDB", "Spanner"]'>No</span>
</td>
<td><a class="comparison-chart__link" href="https://wiki.crdb.io/wiki/spaces/CRDB/pages/73204033/Contributing+to+CockroachDB" target="_blank">Yes</a></td>
<td><a class="comparison-chart__link" href="https://wiki.crdb.io/wiki/spaces/CRDB/pages/73204033/Contributing+to+CockroachDB" target="_blank" rel="noopener">Yes</a></td>
</tr>
<tr>
<td class="comparison-chart__feature">
Expand Down
2 changes: 1 addition & 1 deletion v2.0/cockroachdb-in-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ This page shows you how key features of CockroachDB stack up against other datab
<span class="support" data-dbs='["MySQL", "PostgreSQL", "Cassandra", "HBase", "MongoDB"]'>Yes</span>
<span class="support gray" data-dbs='["Oracle", "SQL Server", "DynamoDB", "Spanner"]'>No</span>
</td>
<td><a class="comparison-chart__link" href="https://wiki.crdb.io/wiki/spaces/CRDB/pages/73204033/Contributing+to+CockroachDB" target="_blank">Yes</a></td>
<td><a class="comparison-chart__link" href="https://wiki.crdb.io/wiki/spaces/CRDB/pages/73204033/Contributing+to+CockroachDB" target="_blank" rel="noopener">Yes</a></td>
</tr>
<tr>
<td class="comparison-chart__feature">
Expand Down
2 changes: 1 addition & 1 deletion v2.1/cockroachdb-in-comparison.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ This page shows you how key features of CockroachDB stack up against other datab
<span class="support" data-dbs='["MySQL", "PostgreSQL", "Cassandra", "HBase", "MongoDB"]'>Yes</span>
<span class="support gray" data-dbs='["Oracle", "SQL Server", "DynamoDB", "Spanner"]'>No</span>
</td>
<td><a class="comparison-chart__link" href="https://wiki.crdb.io/wiki/spaces/CRDB/pages/73204033/Contributing+to+CockroachDB" target="_blank">Yes</a></td>
<td><a class="comparison-chart__link" href="https://wiki.crdb.io/wiki/spaces/CRDB/pages/73204033/Contributing+to+CockroachDB" target="_blank" rel="noopener">Yes</a></td>
</tr>
<tr>
<td class="comparison-chart__feature">
Expand Down
4 changes: 2 additions & 2 deletions v20.2/sql-playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ summary: The SQL Playground gives you an interactive SQL shell to a single-node
toc: false
---

This playground gives you an interactive SQL shell to a single-node CockroachDB cluster running v20.2. The cluster is pre-loaded with a sample dataset, configured for CockroachDB's <a href="spatial-features.html" target="_blank">spatial</a> functionality, and set up with a DB Console user.
This playground gives you an interactive SQL shell to a single-node CockroachDB cluster running v20.2. The cluster is pre-loaded with a sample dataset, configured for CockroachDB's <a href="spatial-features.html" target="_blank" rel="noopener">spatial</a> functionality, and set up with a DB Console user.

- To access the DB Console, click the **DB Console** tab and then login with the username `max` and the password `roach`.
- For docs on our SQL dialect, see <a href="sql-statements.html" target="_blank">SQL Reference</a>.
- For docs on our SQL dialect, see <a href="sql-statements.html" target="_blank" rel="noopener">SQL Reference</a>.
- For a more guided experience, see [Learn CockroachDB SQL](../tutorials/learn-cockroachdb-sql-interactive.html).

<div
Expand Down
4 changes: 2 additions & 2 deletions v21.1/sql-playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ summary: The SQL Playground gives you an interactive SQL shell to a single-node
toc: false
---

This playground gives you an interactive SQL shell to a single-node CockroachDB cluster running v21.1. The cluster is pre-loaded with a sample dataset, configured for CockroachDB's <a href="spatial-features.html" target="_blank">spatial</a> functionality, and set up with a DB Console user.
This playground gives you an interactive SQL shell to a single-node CockroachDB cluster running v21.1. The cluster is pre-loaded with a sample dataset, configured for CockroachDB's <a href="spatial-features.html" target="_blank" rel="noopener">spatial</a> functionality, and set up with a DB Console user.

- To access the DB Console, click the **DB Console** tab and then login with the username `max` and the password `roach`.
- For docs on our SQL dialect, see <a href="sql-statements.html" target="_blank">SQL Reference</a>.
- For docs on our SQL dialect, see <a href="sql-statements.html" target="_blank" rel="noopener">SQL Reference</a>.
- For a more guided experience, see [Learn CockroachDB SQL](../tutorials/learn-cockroachdb-sql-interactive.html).

<div
Expand Down
2 changes: 1 addition & 1 deletion v21.2/build-a-python-app-with-cockroachdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ docs_area: get_started
This tutorial shows you how build a simple Python application with CockroachDB and the psycopg2 driver. For the CockroachDB back-end, you'll use a temporary local cluster.

<div class="clearfix">
<a class="btn btn-outline-primary" href="../tutorials/build-a-python-app-with-cockroachdb-interactive.html" target="_blank">Run this in your browser &rarr;</a>
<a class="btn btn-outline-primary" href="../tutorials/build-a-python-app-with-cockroachdb-interactive.html" target="_blank" rel="noopener">Run this in your browser &rarr;</a>
</div>

## Step 1. Install the psycopg2 driver
Expand Down
2 changes: 1 addition & 1 deletion v21.2/demo-json-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ docs_area: deploy
This page walks you through a simple demonstration of how CockroachDB can store and query unstructured [`JSONB`](jsonb.html) data from a third-party API, as well as how a [GIN index](inverted-indexes.html) can optimize your queries.

<div class="clearfix">
<a class="btn btn-outline-primary" href="../tutorials/demo-json-support-interactive.html" target="_blank">Run this in your browser &rarr;</a>
<a class="btn btn-outline-primary" href="../tutorials/demo-json-support-interactive.html" target="_blank" rel="noopener">Run this in your browser &rarr;</a>
</div>

## Step 1. Install prerequisites
Expand Down
2 changes: 1 addition & 1 deletion v21.2/learn-cockroachdb-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This tutorial walks you through some of the most essential CockroachDB SQL state
For a complete list of supported SQL statements and related details, see [SQL Statements](sql-statements.html).

<div class="clearfix">
<a class="btn btn-outline-primary" href="../tutorials/learn-cockroachdb-sql-interactive.html" target="_blank">Run this in your browser &rarr;</a>
<a class="btn btn-outline-primary" href="../tutorials/learn-cockroachdb-sql-interactive.html" target="_blank" rel="noopener">Run this in your browser &rarr;</a>
</div>

## Start CockroachDB
Expand Down
2 changes: 1 addition & 1 deletion v21.2/spatial-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In this tutorial, you will plan a vacation from New York City to the [Adirondack
+ Visualizing the output of your queries using free tools like <https://geojson.io>

<div class="clearfix">
<a class="btn btn-outline-primary" href="../tutorials/spatial-tutorial-interactive.html" target="_blank">Run this in your browser &rarr;</a>
<a class="btn btn-outline-primary" href="../tutorials/spatial-tutorial-interactive.html" target="_blank" rel="noopener">Run this in your browser &rarr;</a>
</div>

## Step 1. Review the scenario
Expand Down
4 changes: 2 additions & 2 deletions v21.2/sql-playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ toc: false
docs_area: develop
---

This playground gives you an interactive SQL shell to a single-node CockroachDB cluster. The cluster is pre-loaded with a sample dataset, configured for CockroachDB's <a href="spatial-features.html" target="_blank">spatial</a> functionality, and set up with a DB Console user.
This playground gives you an interactive SQL shell to a single-node CockroachDB cluster. The cluster is pre-loaded with a sample dataset, configured for CockroachDB's <a href="spatial-features.html" target="_blank" rel="noopener">spatial</a> functionality, and set up with a DB Console user.

- To access the DB Console, click the **DB Console** tab and then login with the username `max` and the password `roach`.
- For docs on our SQL dialect, see <a href="sql-statements.html" target="_blank">SQL Reference</a>.
- For docs on our SQL dialect, see <a href="sql-statements.html" target="_blank" rel="noopener">SQL Reference</a>.
- For a more guided experience, see [Learn CockroachDB SQL](../tutorials/learn-cockroachdb-sql-interactive.html).

<div
Expand Down
2 changes: 1 addition & 1 deletion v22.1/build-a-python-app-with-cockroachdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ docs_area: get_started
This tutorial shows you how build a simple Python application with CockroachDB and the psycopg2 driver. For the CockroachDB back-end, you'll use a temporary local cluster.

<div class="clearfix">
<a class="btn btn-outline-primary" href="../tutorials/build-a-python-app-with-cockroachdb-interactive.html" target="_blank">Run this in your browser &rarr;</a>
<a class="btn btn-outline-primary" href="../tutorials/build-a-python-app-with-cockroachdb-interactive.html" target="_blank" rel="noopener">Run this in your browser &rarr;</a>
</div>

## Step 1. Install the psycopg2 driver
Expand Down
2 changes: 1 addition & 1 deletion v22.1/demo-json-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ docs_area: deploy
This page walks you through a simple demonstration of how CockroachDB can store and query unstructured [`JSONB`](jsonb.html) data from a third-party API, as well as how a [GIN index](inverted-indexes.html) can optimize your queries.

<div class="clearfix">
<a class="btn btn-outline-primary" href="../tutorials/demo-json-support-interactive.html" target="_blank">Run this in your browser &rarr;</a>
<a class="btn btn-outline-primary" href="../tutorials/demo-json-support-interactive.html" target="_blank" rel="noopener">Run this in your browser &rarr;</a>
</div>

## Step 1. Install prerequisites
Expand Down
2 changes: 1 addition & 1 deletion v22.1/learn-cockroachdb-sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This tutorial walks you through some of the most essential CockroachDB SQL state
For a complete list of supported SQL statements and related details, see [SQL Statements](sql-statements.html).

<div class="clearfix">
<a class="btn btn-outline-primary" href="../tutorials/learn-cockroachdb-sql-interactive.html" target="_blank">Run this in your browser &rarr;</a>
<a class="btn btn-outline-primary" href="../tutorials/learn-cockroachdb-sql-interactive.html" target="_blank" rel="noopener">Run this in your browser &rarr;</a>
</div>

## Start CockroachDB
Expand Down
2 changes: 1 addition & 1 deletion v22.1/spatial-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ In this tutorial, you will plan a vacation from New York City to the [Adirondack
+ Visualizing the output of your queries using free tools like <https://geojson.io>

<div class="clearfix">
<a class="btn btn-outline-primary" href="../tutorials/spatial-tutorial-interactive.html" target="_blank">Run this in your browser &rarr;</a>
<a class="btn btn-outline-primary" href="../tutorials/spatial-tutorial-interactive.html" target="_blank" rel="noopener">Run this in your browser &rarr;</a>
</div>

## Step 1. Review the scenario
Expand Down
4 changes: 2 additions & 2 deletions v22.1/sql-playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ toc: false
docs_area: develop
---

This playground gives you an interactive SQL shell to a single-node CockroachDB cluster. The cluster is pre-loaded with a sample dataset, configured for CockroachDB's <a href="spatial-features.html" target="_blank">spatial</a> functionality, and set up with a DB Console user.
This playground gives you an interactive SQL shell to a single-node CockroachDB cluster. The cluster is pre-loaded with a sample dataset, configured for CockroachDB's <a href="spatial-features.html" target="_blank" rel="noopener">spatial</a> functionality, and set up with a DB Console user.

- To access the DB Console, click the **DB Console** tab and then login with the username `max` and the password `roach`.
- For docs on our SQL dialect, see <a href="sql-statements.html" target="_blank">SQL Reference</a>.
- For docs on our SQL dialect, see <a href="sql-statements.html" target="_blank" rel="noopener">SQL Reference</a>.
- For a more guided experience, see [Learn CockroachDB SQL](../tutorials/learn-cockroachdb-sql-interactive.html).

<div
Expand Down

0 comments on commit 4bb403d

Please sign in to comment.