From 0bc94c925332df36e49f44b39f65bcb808c760b7 Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Sun, 19 Dec 2021 15:22:40 +0800 Subject: [PATCH] Fix the anchor link not found --- bash.md | 6 +++--- cpp.md | 6 +++--- css.md | 20 ++++++++++---------- golang.md | 10 +++++----- java.md | 8 ++++---- php.md | 18 +++++++++--------- python.md | 6 +++--- redis.md | 10 +++++----- sass.md | 2 +- toml.md | 4 ++-- 10 files changed, 45 insertions(+), 45 deletions(-) diff --git a/bash.md b/bash.md index 29dacf7..9e6bd62 100644 --- a/bash.md +++ b/bash.md @@ -80,7 +80,7 @@ Multi-line comments use `:'` to open and `'` to close | `$-` | Current options | | `$_` | Last argument of the previous command | -See: [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables). +See: [Special parameters](http://wiki.bash-hackers.org/syntax/shellvars#special_parameters_and_shell_variables) @@ -94,7 +94,7 @@ get_name() { echo "You are $(get_name)" ``` -See: [Functions](#functions-2) +See: [Functions](#bash-functions) ### Conditionals {#conditionals-example} @@ -106,7 +106,7 @@ elif [[ -n "$string" ]]; then fi ``` -See: [Conditionals](#conditionals-2) +See: [Conditionals](#bash-conditionals) ### Brace expansion diff --git a/cpp.md b/cpp.md index 41ee286..0adb40c 100644 --- a/cpp.md +++ b/cpp.md @@ -115,7 +115,7 @@ if (a == 10) { // do something } ``` -See: [Conditionals](#conditionals) +See: [Conditionals](#c-conditionals) @@ -126,7 +126,7 @@ for (int i = 0; i < 10; i++) { std::cout << i << "\n"; } ``` -See: [Loops](#loops-2) +See: [Loops](#c-loops) ### Functions @@ -143,7 +143,7 @@ void hello() { // Defining std::cout << "Hello QuickRef!\n"; } ``` -See: [Functions](#functions-2) +See: [Functions](#c-functions) diff --git a/css.md b/css.md index f959081..a4412c8 100644 --- a/css.md +++ b/css.md @@ -73,7 +73,7 @@ div.hero { } div > p { } ``` -See: [Selectors](#selectors) +See: [Selectors](#css-selectors) @@ -86,7 +86,7 @@ color: rgb(34, 12, 64, 0.6); color: hsla(30 100% 50% / 0.6); ``` -See: [Colors](#colors) +See: [Colors](#css-colors) @@ -99,7 +99,7 @@ background-image: url("nyan-cat.gif"); background-image: url("../image.png"); ``` -See: [Backgrounds](#backgrounds) +See: [Backgrounds](#css-backgrounds) @@ -112,7 +112,7 @@ See: [Backgrounds](#backgrounds) font-family: "Courier New"; } ``` -See: [Fonts](#fonts) +See: [Fonts](#css-fonts) @@ -139,7 +139,7 @@ animation: 300ms linear 0s infinite; animation: bounce 300ms linear infinite; ``` -See: [Animation](#animation-2) +See: [Animation](#css-animation) ### Comment @@ -165,7 +165,7 @@ div { } ``` -See: [Flexbox](#flexbox) | [Flex Tricks](#flexbox-tricks) +See: [Flexbox](#css-flexbox) | [Flex Tricks](#css-flexbox-tricks) @@ -185,7 +185,7 @@ See: [Flexbox](#flexbox) | [Flex Tricks](#flexbox-tricks) } ``` -See: [Grid Layout](#grid-layout-2) +See: [Grid Layout](#css-grid-layout) @@ -203,7 +203,7 @@ element { } ``` -See: [Dynamic content](#dynamic-content) +See: [Dynamic content](#css-dynamic-content) CSS Selectors {.cols-3} @@ -493,7 +493,7 @@ CSS Backgrounds {.cols-3} |---------------|---------------| | `background:` | _(Shorthand)_ | -| `background-color:` | See: [Colors](#colors) | +| `background-color:` | See: [Colors](#css-colors) | | `background-image:` | url(...) | | `background-position:` | left/center/right
top/center/bottom | | `background-size:` | cover X Y | @@ -1078,7 +1078,7 @@ html { scroll-behavior: smooth; } ``` -[Click me](#getting-started), the page will scroll smoothly to Getting started +[Click me](#css-getting-started), the page will scroll smoothly to Getting started diff --git a/golang.md b/golang.md index 32eaf70..c147d2b 100644 --- a/golang.md +++ b/golang.md @@ -52,7 +52,7 @@ b, c := 1, 2 // int d := true // bool ``` -See: [Basic types](#basic-types) +See: [Basic types](#golang-basic-types) @@ -72,7 +72,7 @@ func say(message string) { fmt.Println("You said: ", message) } ``` -See: [Functions](#functions-2) +See: [Functions](#golang-functions) @@ -92,7 +92,7 @@ if true { fmt.Println("Yes!") } ``` -See: [Flow control](#flow-control) +See: [Flow control](#golang-flow-control) @@ -134,7 +134,7 @@ x++ fmt.Println("x + 4 =", x + 4) fmt.Println("x * 4 =", x * 4) ``` -See: [More Operators](#operators-and-punctuation) +See: [More Operators](#golang-operators-and-punctuation) @@ -154,7 +154,7 @@ fmt.Println(true || true) // true fmt.Println(true || false) // true fmt.Println(!true) // false ``` -See: [More Operators](#operators-and-punctuation) +See: [More Operators](#golang-operators-and-punctuation) diff --git a/java.md b/java.md index 460d95a..2b50592 100644 --- a/java.md +++ b/java.md @@ -70,7 +70,7 @@ String last = "Doe"; String name = first + " " + last; System.out.println(name); ``` -See: [Strings](#strings-2) +See: [Strings](#java-strings) @@ -83,7 +83,7 @@ for (char c: word.toCharArray()) { } // Outputs: Q-u-i-c-k-R-e-f- ``` -See: [Loops](#loops-2) +See: [Loops](#java-loops) ### Arrays @@ -96,7 +96,7 @@ String[] letters = {"A", "B", "C"}; int[] mylist = {100, 200}; boolean[] answers = {true, false}; ``` -See: [Arrays](#arrays-2) +See: [Arrays](#java-arrays) ### Swap @@ -139,7 +139,7 @@ if (j == 10) { System.out.println("I also don't"); } ``` -See: [Conditionals](#conditionals-2) +See: [Conditionals](#java-conditionals) diff --git a/php.md b/php.md index 3fdf2ce..1980eda 100644 --- a/php.md +++ b/php.md @@ -44,7 +44,7 @@ unset($float); // Delete variable $str1 = "How are you?"; $str2 = 'Fine, thanks'; ``` -See: [Types](#types) +See: [Types](#php-types) @@ -61,7 +61,7 @@ $hello = "Hello, "; $hello .= "World!"; echo $hello; # => Hello, World! ``` -See: [Strings](#strings-2) +See: [Strings](#php-strings) @@ -74,7 +74,7 @@ unset($num[2]); // Delete variable print_r($num); # => 1 3 7 9 11 echo count($num); # => 5 ``` -See: [Arrays](#arrays-2) +See: [Arrays](#php-arrays) @@ -86,7 +86,7 @@ $y = 2; $sum = $x + $y; echo $sum; # => 3 ``` -See: [Operators](#operators-2) +See: [Operators](#php-operators) ### Include {.row-span-3} @@ -131,7 +131,7 @@ function add($num1, $num2 = 1) { echo add(10); # => 11 echo add(10, 5); # => 15 ``` -See: [Functions](#functions-3) +See: [Functions](#php-functions) @@ -171,7 +171,7 @@ class Student { } $alex = new Student("Alex"); ``` -See: [Classes](#classes-2) +See: [Classes](#php-classes) @@ -214,13 +214,13 @@ See also: [Integers](https://www.php.net/manual/en/language.types.integer.php) ```php echo 'this is a simple string'; ``` -See: [Strings](#strings-3) +See: [Strings](#php-strings) ### Arrays ```php $arr = array("hello", "world", "!"); ``` -See: [Arrays](#arrays-3) +See: [Arrays](#php-arrays) ### Float (Double) @@ -695,7 +695,7 @@ foreach ($a as $k) { echo $k; } ``` -See: [Array iteration](#value-iteration) +See: [Array iteration](#php-value-iteration) diff --git a/python.md b/python.md index b566307..62acb01 100644 --- a/python.md +++ b/python.md @@ -160,7 +160,7 @@ message += "Part 2." >>> f'{num} + 10 = {num + 10}' '10 + 10 = 20' ``` -See: [Python F-Strings](#python-f-strings-since-python-3-6) +See: [Python F-Strings](#python-f-strings-since-python) @@ -179,7 +179,7 @@ multi_string = """Multiline Strings Lorem ipsum dolor sit amet, consectetur adipiscing elit """ ``` -See: [Strings](#strings-2) +See: [Strings](#python-strings) @@ -213,7 +213,7 @@ list2 = [True, False, False] list3 = [1, 5, 7, 9, 3] list4 = list((1, 5, 7, 9, 3)) ``` -See: [Lists](#lists-3) +See: [Lists](#python-lists) ### Tuple diff --git a/redis.md b/redis.md index 2b80b77..a63eee2 100644 --- a/redis.md +++ b/redis.md @@ -50,11 +50,11 @@ redis> GET mykey ### Basic Data types -- [Strings](#string-command) -- [Lists](#list-command) -- [Hashes](#hash-command) -- [Sets](#set-command) -- [Sorted Sets](#sorted-set-command) +- [Strings](#redis-string-command) +- [Lists](#redis-list-command) +- [Hashes](#redis-hash-command) +- [Sets](#redis-set-command) +- [Sorted Sets](#redis-sorted-set-command) Redis supports 5 basic data types diff --git a/sass.md b/sass.md index d782f21..1c52642 100644 --- a/sass.md +++ b/sass.md @@ -68,7 +68,7 @@ h1 { @include heading-font; } ``` -See: [Mixins](#mixins-2) +See: [Mixins](#sass-mixins) diff --git a/toml.md b/toml.md index a937927..b5ef336 100644 --- a/toml.md +++ b/toml.md @@ -90,7 +90,7 @@ str1 = "I'm a string." str2 = "You can \"quote\" me." str3 = "Name\tJos\u00E9\nLoc\tSF." ``` -See: [Strings](#strings) +See: [Strings](#toml-strings) @@ -101,7 +101,7 @@ See: [Strings](#strings) name = "Tom Preston-Werner" dob = 1979-05-27T07:32:00-08:00 ``` -See: [Tables](#tables) +See: [Tables](#toml-tables) ### Array