Skip to content

Commit 6b1f2ae

Browse files
Merge pull request #444 from stan-dev/fix-release-add-all-untracked-files
Revert removing _modules, _sources dir from docs/, improve copying behavior on code examples
2 parents 2e51f9b + cb65a7e commit 6b1f2ae

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docsrc/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ github:
2222
@make html
2323
@rm -rf ../docs/*
2424
@cp -r _build/html/* ../docs
25-
@rm -rf ../docs/_modules
26-
@rm -rf ../docs/_sources
2725

2826
# Catch-all target: route all unknown targets to Sphinx using the new
2927
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).

docsrc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,7 @@ def emit(self, record):
439439
# 'reference_url': {
440440
# 'skltemplate': None}
441441
# }
442+
443+
# Makes the copying behavior on code examples cleaner by removing things like In [10]: from the text to be copied
444+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
445+
copybutton_prompt_is_regexp = True

0 commit comments

Comments
 (0)