Skip to content

Commit a395c9b

Browse files
authored
Merge pull request #246 from nmfs-opensci/eeholmes-patch-1
open qmd in editor until patch is in and can be tested
2 parents f66107f + 4f68110 commit a395c9b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ RUN mandb
7171
RUN mkdir -p ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_server_config.d/ && \
7272
mkdir -p ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/ && \
7373
cp ${REPO_DIR}/custom_jupyter_server_config.json ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_server_config.d/ && \
74-
cp ${REPO_DIR}/custom_jupyter_server_config.json ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/
74+
cp ${REPO_DIR}/custom_jupyter_server_config.json ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/ && \
75+
chown jovyan:staff ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_server_config.d/custom_jupyter_server_config.json && \
76+
chown jovyan:staff ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/custom_jupyter_server_config.json && \
77+
chmod 664 ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_server_config.d/custom_jupyter_server_config.json && \
78+
chmod 664 ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_notebook_config.d/custom_jupyter_server_config.json
7579

7680
# Set up the defaults for Desktop. Keep config in the /etc so doesn't trash user environment (that they might want for other environments)
7781
ENV XDG_CONFIG_HOME=/etc/xdg/userconfig

custom_jupyter_server_config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"ContentsManager": {
33
"allow_hidden": true
4+
},
5+
"@jupyterlab/docmanager-extension:plugin": {
6+
"defaultViewers": {
7+
"qmd": "editor"
8+
}
49
}
510
}

0 commit comments

Comments
 (0)