-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: include scripts in documentation instead of copy'n'paste #1558
WIP: include scripts in documentation instead of copy'n'paste #1558
Conversation
I like it. |
I see literalinclude mentioned at least back to 2010. I don't think it needs anything special. |
What's the opinion on smaller code blocks, e.g., https://docs.arbor-sim.org/en/latest/python/profiler.html - these could also be moved to files and included. I'm in favour of doing so to have them CIable as @bcumming pointed out. |
I'm a bit worried about line numbers going out of date. That's harder to spot than the code itself, at least for me. What do you think? |
I agree. Maybe one should add a hint in the script like "This script is included in documentation. Adapt line numbers if touched.". |
I'm incorporating this into #1575, because there I already needed to go through the tutorials. |
* Ci/sanitize (arbor-sim#1521) Add clang sanitizer passes to GH CI. * Tutorial structure: remove deduplication, includify (arbor-sim#1575) * added notes re literal_include to python examples * merged changes in arbor-sim#1504 * deduped and includified (arbor-sim#1558) tutorials. * First divergence of tutorial and code spotted! * Added some contrib documentation for examples and docs. * Implement mechanism ABI Implements arbor-sim#1376. * Provide a common C linkage ABI for externally compiled mechanisms, for both CPU and GPU. * Remove mechanism type hierarchy (`concrete_mechanism` etc.), and move corresponding functionality to the back-end shared state objects. Mechanism catalogue is no longer indexed by type id. * Distinguish between SIMD optimal alignment and SIMD width with new `min_align` attribute. Mechanisms provide both pieces of information via ABI. * update spack package to include fmt for arbor@0.5.3: (arbor-sim#1609) * alles werkt weer allen smol_dend niet;' * nu werkt het * Docs mechabi (arbor-sim#1610) * Bit of review on the copy of the mech abi docs. * Convert api/abi docs to C Domain directives. * Bug/assorted static analysis (arbor-sim#1615) * Fix failure to return value in `py_mech_cat_value_iterator `. * String butchered by formatting. * Join unnecessary separation of string literals in `arborio/cabelio.cpp` * Add missing throw in s_expr code. * Return value, not reference, in `merge_iterator::operator++(int)`. * Check for self-assignment in `mechanism_catalogue`. * Initialize all members of `mechanism`. * Fix index check order in `multi_event_stream` debug output. * Use coordinator_ from base class in `memory::array`. Co-authored-by: thorstenhater <24411438+thorstenhater@users.noreply.github.com> Co-authored-by: Brent Huisman <brenthuisman@users.noreply.github.com> Co-authored-by: Ben Cumming <bcumming@cscs.ch>
* Ci/sanitize (arbor-sim#1521) Add clang sanitizer passes to GH CI. * Tutorial structure: remove deduplication, includify (arbor-sim#1575) * added notes re literal_include to python examples * merged changes in arbor-sim#1504 * deduped and includified (arbor-sim#1558) tutorials. * First divergence of tutorial and code spotted! * Added some contrib documentation for examples and docs. * Implement mechanism ABI Implements arbor-sim#1376. * Provide a common C linkage ABI for externally compiled mechanisms, for both CPU and GPU. * Remove mechanism type hierarchy (`concrete_mechanism` etc.), and move corresponding functionality to the back-end shared state objects. Mechanism catalogue is no longer indexed by type id. * Distinguish between SIMD optimal alignment and SIMD width with new `min_align` attribute. Mechanisms provide both pieces of information via ABI. * update spack package to include fmt for arbor@0.5.3: (arbor-sim#1609) * Docs mechabi (arbor-sim#1610) * Bit of review on the copy of the mech abi docs. * Convert api/abi docs to C Domain directives. * Bug/assorted static analysis (arbor-sim#1615) * Fix failure to return value in `py_mech_cat_value_iterator `. * String butchered by formatting. * Join unnecessary separation of string literals in `arborio/cabelio.cpp` * Add missing throw in s_expr code. * Return value, not reference, in `merge_iterator::operator++(int)`. * Check for self-assignment in `mechanism_catalogue`. * Initialize all members of `mechanism`. * Fix index check order in `multi_event_stream` debug output. * Use coordinator_ from base class in `memory::array`. Co-authored-by: thorstenhater <24411438+thorstenhater@users.noreply.github.com> Co-authored-by: Brent Huisman <brenthuisman@users.noreply.github.com> Co-authored-by: Ben Cumming <bcumming@cscs.ch>
No description provided.