File tree Expand file tree Collapse file tree 1 file changed +22
-13
lines changed Expand file tree Collapse file tree 1 file changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -26,21 +26,30 @@ To add a custom header and footer,
26
26
</body>
27
27
28
28
It is important to include ``<div id="root"></div> `` because this is the HTML node that React will use to build the launch form.
29
- 3. add a ` ConfigMap < https://kubernetes.io/docs/concepts/configuration/configmap/ >`_ to your Helm configuration.
29
+ 3. copy `` files/custom-page.html `` into `` extraFiles `` in the Helm configuration file .
30
30
For example::
31
31
32
- kind: ConfigMap
33
- apiVersion: v1
34
- metadata:
35
- name: binderhub-template-custom
36
- labels:
37
- app: binder
38
- component: etc-binderhub
39
- heritage: {{ .Release.Service }}
40
- release: {{ .Release.Name }}
41
- data:
42
- {{- (.Files.Glob "files/*").AsConfig | nindent 2 }}
43
- 4. add
32
+ extraFiles:
33
+ custom-page:
34
+ mountPath: files/custom-page.html
35
+ stringData: |
36
+ ...
37
+ <body>
38
+ <header>
39
+ My Own BinderHub
40
+ </header>
41
+ <div id="root"></div>
42
+ <footer>
43
+ Powered by BinderHub
44
+ </footer>
45
+ </body>
46
+ ...
47
+ 4. change ``template_file `` in the Helm configuration file.
48
+ For example::
49
+
50
+ config:
51
+ BinderHub:
52
+ template_file: files/custom-page.html
44
53
45
54
Banner customization
46
55
~~~~~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments