Skip to content

Commit

Permalink
Fix for the broken link found using linkchecker (#5041)
Browse files Browse the repository at this point in the history
* Fix the detected broken links in Linkchecker
* Adding BaseURL to local.sh script

Signed-off-by: Prashant Shahi <prashant@dgraph.io>
(cherry picked from commit 46dfaab)
  • Loading branch information
prashant-shahi committed Apr 14, 2020
1 parent c527681 commit e6d0936
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wiki/content/tips/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Use the `has` function among the value variables to search on non-indexed predic

Dgraph [sorting]({{< relref "query-language/index.md#sorting" >}}) is based on a single
level of the subgraph. To sort a level by the values of a deeper level, use
[query variables]({{ relref "query-language/index.md#query-variables" }}) to bring
[query variables]({{< relref "query-language/index.md#query-variables" >}}) to bring
nested values up to the level of the edge to be sorted.

Example: Get all actors from a Steven Spielberg movie sorted alphabetically.
Expand Down
4 changes: 2 additions & 2 deletions wiki/scripts/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ run() {

if [[ $1 == "-p" || $1 == "--preview" ]]; then
echo -e "$(date) $GREEN Generating documentation static pages in the public folder. $RESET"
hugo --destination=public 1> /dev/null
hugo --destination=public --baseURL="$2" 1> /dev/null
echo -e "$(date) $GREEN Done building. $RESET"
else
CURRENT_VERSION=${CURRENT_VERSION} hugo server -w --baseURL=http://localhost:1313
fi
popd > /dev/null
}

run $1
run $1 $2

0 comments on commit e6d0936

Please sign in to comment.