Skip to content

Commit 6678929

Browse files
authored
Merge pull request #997 from plotly/display_as_breadcrumbs
added display_as text to breadcrumbs
2 parents 84bad17 + a41ed96 commit 6678929

File tree

2 files changed

+186
-1
lines changed

2 files changed

+186
-1
lines changed

_data/display_as.yml

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
mathematics:
2+
reference: '#mathematics'
3+
text: Mathematics
4+
statistics:
5+
reference: '#statistics'
6+
text: Statistics
7+
peak-analysis:
8+
reference: '#peak-analysis'
9+
text: Peak Analysis
10+
signal-analysis:
11+
reference: '#signal-analysis'
12+
text: Signal Analysis
13+
file_settings:
14+
reference: 'plotly-fundamentals'
15+
text: Plotly Fundamentals
16+
basic:
17+
reference: 'basic-charts'
18+
text: Basic
19+
statistical:
20+
reference: 'statistical-charts'
21+
text: Statistical
22+
scientific:
23+
reference: 'scientific-charts'
24+
text: Scientific
25+
financial:
26+
reference: '#financial-charts'
27+
text: Financial
28+
maps:
29+
reference: 'maps'
30+
text: Maps
31+
3d_charts:
32+
reference: '3d-charts'
33+
text: 3D
34+
multiple_axes:
35+
reference: 'subplot-charts'
36+
text: Subplots
37+
transforms:
38+
reference: '#transforms'
39+
text: Transforms
40+
controls:
41+
reference: '#controls'
42+
text: Custom Controls
43+
language:
44+
reference: '#chart-events'
45+
text: Chart Events
46+
animations:
47+
reference: '#animations'
48+
text: Animations
49+
streaming:
50+
reference: '#streaming'
51+
text: Streaming
52+
databases:
53+
reference: '#databases'
54+
text: Connecting to Databases
55+
report_generation:
56+
reference: '#report-generation'
57+
text: Report Generation
58+
style_opt:
59+
reference: '#style-options'
60+
text: Style Options
61+
layout_opt:
62+
reference: '#layout-options'
63+
text: Layout Options
64+
legacy_charts:
65+
reference: '#legacy-charts'
66+
text: Legacy Charts
67+
tutorial:
68+
reference: '#tutorial'
69+
text: Tutorial
70+
get_request:
71+
reference: '#static-image-export'
72+
text: Image Export & Retrieving Plots
73+
aesthetics:
74+
reference: '#aes'
75+
text: Aesthetics
76+
geoms:
77+
reference: '#geoms'
78+
text: Geoms
79+
faceting:
80+
reference: '#faceting'
81+
text: Faceting
82+
other:
83+
reference: '#other'
84+
text: Other
85+
theme:
86+
reference: '#theme'
87+
text: Theme
88+
general_examples:
89+
reference: '#general-examples'
90+
text: General Examples
91+
real_dataset:
92+
reference: '#real_dataset'
93+
text: Examples based on real world dataset
94+
biclustering:
95+
reference: '#biclustering'
96+
text: Biclustering
97+
calibration:
98+
reference: '#calibration'
99+
text: Calibration
100+
classification:
101+
reference: '#classification'
102+
text: Classification
103+
clustering:
104+
reference: '#clustering'
105+
text: Clustering
106+
covariance_estimation:
107+
reference: '#covariance_estimation'
108+
text: Covariance Estimation
109+
cross_decomposition:
110+
reference: '#cross_decomposition '
111+
text: Cross Decomposition
112+
dataset:
113+
reference: '#dataset '
114+
text: Dataset Examples
115+
decomposition:
116+
reference: '#decomposition '
117+
text: Decomposition
118+
ensemble_methods:
119+
reference: '#ensemble_methods '
120+
text: Ensemble Methods
121+
tutorial_exercises:
122+
reference: '#tutorial_exercises '
123+
text: Tutorial Exercises
124+
feature_selection:
125+
reference: '#feature_selection '
126+
text: Feature Selection
127+
gaussian-process:
128+
reference: '#gaussian-process '
129+
text: Gaussian Process for Machine Learning
130+
linear_models:
131+
reference: '#linear_models '
132+
text: Generalized Linear Models
133+
manifold_learning:
134+
reference: '#manifold_learning '
135+
text: Manifold Learning
136+
gaussian_mixture:
137+
reference: '#gaussian_mixture'
138+
text: Gaussian Mixture Models
139+
model_selection:
140+
reference: '#model_selection'
141+
text: Model Selection
142+
nearest_neighbors:
143+
reference: '#nearest_neighbors '
144+
text: Nearest Neighbors
145+
neural_networks:
146+
reference: '#neural_networks '
147+
text: Neural Networks
148+
preprocessing:
149+
reference: '#preprocessing '
150+
text: Preprocessing
151+
semi_supervised:
152+
reference: '#semi_supervised '
153+
text: Semi Supervised Classification
154+
vector_machines:
155+
reference: '#vector_machines'
156+
text: Support Vector Machines
157+
decision_trees:
158+
reference: '#decision_trees'
159+
text: Decision Trees
160+
text_documents:
161+
reference: '#text_documents'
162+
text: Working with Text Documents
163+
dashboards:
164+
reference: '#industry'
165+
text: By Industry
166+
chart_events:
167+
reference: '#chart-events'
168+
text: Chart Events
169+
ipython_notebooks_gallery:
170+
reference: '#language'
171+
text: By Data Science Language

_includes/breadcrumb.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,28 @@
3434
</li>
3535
{% endif %}
3636

37+
38+
{% if page.display_as != blank %}
39+
{% assign display_as = site.data.display_as[page.display_as] %}
40+
{% assign langue = page.language %}
41+
{% if page.permalink contains 'javascript' %}
42+
{% assign langue = 'javascript' %}
43+
{% endif %}
44+
<li class="--breadcrumb-item">
45+
<a href="/{{ display_as.reference | prepend: "/" | prepend: langue }}">
46+
<span>{{ display_as.text }}</span>
47+
</a>
48+
</li>
49+
50+
{% endif %}
51+
3752
{% if page.layout != "langindex" %}
3853
{% unless page.permalink == "/api/" %}
3954

4055
<li class="--breadcrumb-item">
4156
<span>{{page.name}}</span>
4257
</li>
4358
{% endunless %}
44-
4559
{% endif %}
4660
</ul>
4761

0 commit comments

Comments
 (0)