Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 406fae7

Browse files
build: fix links and images
1 parent cc13f66 commit 406fae7

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

‎.circleci/config.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs: # a collection of steps
1818

1919
- restore_cache: # special step to restore the dependency cache
2020
# Read about caching dependencies: https://circleci.com/docs/2.0/caching/
21-
key: dependency-cache-{{ checksum "package-lock.json" }}
21+
key: npm-package-{{ checksum "package-lock.json" }}
2222
- run:
2323
name: npm install
2424
command: npm install
2525
- save_cache: # special step to save the dependency cache
26-
key: dependency-cache-{{ checksum "package-lock.json" }}
26+
key: npm-package-{{ checksum "package-lock.json" }}
2727
paths:
2828
- ./node_modules
2929

@@ -62,25 +62,29 @@ jobs: # a collection of steps
6262
# Restore bundle cache
6363
- restore_cache:
6464
keys:
65-
- ruby-{{ checksum "book/config/Gemfile.lock" }}
66-
- ruby-
65+
- gemfile-{{ checksum "book/config/Gemfile.lock" }}
6766
- run:
68-
name: install mathematical for 'asciidoctor-mathematical' gem
67+
name: Bundle Install.pre - install mathematical for 'asciidoctor-mathematical' gem
6968
command: cd book/config && bundle check || sudo apt-get update && sudo apt-get -qq -y install cmake bison flex libffi-dev libxml2-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev ttf-lyx
7069

71-
- run:
72-
name: install GraphicsMagick for 'prawn-gmagick' gem
73-
command: cd book/config && bundle check || sudo apt-get -qq -y install software-properties-common && sudo apt-get -qq -y install graphicsmagick
70+
#- run:
71+
# name: Bundle Install.pre - install GraphicsMagick for 'prawn-gmagick' gem
72+
# command: cd book/config && bundle check || sudo apt-get -qq -y install software-properties-common && sudo apt-get -qq -y install graphicsmagick imagemagick
7473

7574
- run:
7675
name: Bundle Install
7776
command: cd book/config && bundle check || bundle install
77+
7878
# Store bundle cache
7979
- save_cache:
80-
key: ruby-{{ checksum "book/config/Gemfile.lock" }}
80+
key: gemfile-{{ checksum "book/config/Gemfile.lock" }}
8181
paths:
8282
- book/config/vendor/bundle
8383

84+
- run:
85+
name: graphviz for dot diagrams
86+
command: sudo apt-get install graphviz
87+
8488
- run:
8589
name: generate PDF
8690
command: cd book/config && make pdf

‎book/chapters/quick-sort.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The `partition` function does the real heavy-lifting. 🏋️‍♀️
3939
.Quicksort implementation in JavaScript (partition)
4040
[source, javascript]
4141
----
42-
include::{codedir}/algorithms/sorting/Quick-sort.js[tag=partition, indent=0]
42+
include::{codedir}/algorithms/sorting/quick-sort.js[tag=partition, indent=0]
4343
----
4444
<1> Take the leftmost element as the pivot.
4545
<2> `pivotFinalIndex` is the placeholder for the final position where the pivot will be placed when the array is sorted.
@@ -59,7 +59,7 @@ If instead of partitioning by the first element we do it by the middle (or even
5959

6060
[source, javascript]
6161
----
62-
include::{codedir}/algorithms/sorting/Quick-sort.js[tag=sort, indent=0]
62+
include::{codedir}/algorithms/sorting/quick-sort.js[tag=sort, indent=0]
6363
----
6464
<1> Convert to array (or clone array). If you want to modify the input directly remove this line.
6565
<2> Shuffle array to avoid edge cases (desc order arrays)

‎book/images/logo.png

-8.07 KB
Loading[フレーム]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /