Skip to content

Commit

Permalink
adding weights to tutorials section. Setting weight for the Tutorials…
Browse files Browse the repository at this point in the history
… page to be just below old Demos page. Setting weight in individual pages to match order in old Demos page. (etcd-io#530)

Signed-off-by: Nate W <[email protected]>
  • Loading branch information
nate-double-u authored Oct 25, 2021
1 parent 3e8321a commit f54f357
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 5 deletions.
3 changes: 2 additions & 1 deletion content/en/docs/v3.5/tutorials/_index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
title: Tutorials
---
weight: 1110
---
1 change: 1 addition & 0 deletions content/en/docs/v3.5/tutorials/how-to-access-etcd.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to access etcd
description: Guide to access an etcd cluster
weight: 200
---


Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to check Cluster status
description: Guide to checking etcd cluster status
weight: 1000
---


Expand Down
3 changes: 2 additions & 1 deletion content/en/docs/v3.5/tutorials/how-to-conduct-elections.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to conduct leader election in etcd cluster
description: Guide to conducting leader election in an etcd cluster
weight: 900
---

`elect` for leader election:
Expand All @@ -12,4 +13,4 @@ etcdctl --endpoints=$ENDPOINTS elect one p1

# another client with the same name blocks
etcdctl --endpoints=$ENDPOINTS elect one p2
```
```
1 change: 1 addition & 0 deletions content/en/docs/v3.5/tutorials/how-to-create-lease.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to create lease
description: Guide to creating a lease in etcd
weight: 700
----

`lease` to write with TTL:
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/v3.5/tutorials/how-to-create-locks.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to create locks
description: Guide to creating distributed locks in etcd
weight: 800
---

`lock` for distributed lock:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to Add and Remove Members
description: Guide to dealing with membership in etcd cluster
weight: 1300
---


Expand Down
3 changes: 2 additions & 1 deletion content/en/docs/v3.5/tutorials/how-to-delete-keys.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to delete keys
description: Describes a way to delete etcd keys
weight: 400
---

![04_etcdctl_delete_2016050601](https://storage.googleapis.com/etcd/demo/04_etcdctl_delete_2016050601.gif)
Expand All @@ -12,4 +13,4 @@ etcdctl --endpoints=$ENDPOINTS del key
etcdctl --endpoints=$ENDPOINTS put k1 value1
etcdctl --endpoints=$ENDPOINTS put k2 value2
etcdctl --endpoints=$ENDPOINTS del k --prefix
```
```
3 changes: 2 additions & 1 deletion content/en/docs/v3.5/tutorials/how-to-migrate.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to migrate from Etcd2 to Etcd3
description: Migration guide from Etcd2 to Etcd3
weight: 1200
---


Expand All @@ -27,4 +28,4 @@ etcdctl --endpoints=$ENDPOINT migrate --data-dir="default.etcd" --wal-dir="defau

# confirm that the key got migrated
etcdctl --endpoints=$ENDPOINTS get /foo
```
```
1 change: 1 addition & 0 deletions content/en/docs/v3.5/tutorials/how-to-save-database.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to save the database
description: Guide to taking a snapshot of the etcd database
weight: 1100
---


Expand Down
3 changes: 2 additions & 1 deletion content/en/docs/v3.5/tutorials/how-to-transactional-write.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to make multiple writes in a transaction
description: Guide to making transactional writes
weight: 500
---

`txn` to wrap multiple requests into one transaction:
Expand All @@ -19,4 +20,4 @@ del user1

failure requests (get, put, delete):
put user1 good
```
```
1 change: 1 addition & 0 deletions content/en/docs/v3.5/tutorials/how-to-watch-keys.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: How to watch keys
description: Guide to watching etcd keys
weight: 600
---


Expand Down

0 comments on commit f54f357

Please sign in to comment.