You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example 1: Add call_spread future option, buy call_spread.
Remember
Don't use variables that aren't defined.
Comment every line or few lines.
Include 40-100 word explanation.
Declare everything you need each example.
Copy from IDE to Docs so confirm it works. Copy-pastable examples.
ALWAYS make Examples.html at the end.
For the new examples in the docs:
There should be a sentence at the beginning of the <h3>Examples</h3>
<p>The following examples demonstrate some common practices for _________.</p>
Have 1 <h4>Example _: ____________</h4> for each Example.
The example should highlight the concepts that were explained on the respective documentation page.
Avoid creating tutorial-style content for the text. The text between should at least have a sentence that explains what the algorithm does. "The following algorithm __________:"
If there is an opportunity to link some of the text to other pages/sections in the docs, please link it.
The example should be a full algorithm in 1 code block, with conventional styling (PEP8 or typical C#; Ask Grok/ChatGPT to help you style/format the code if you need).
Test that you can run each example algorithm in QC Cloud w/o error before adding it to the docs.
If we have a list of Demonstration Algorithms, put them all under <h4>Other Examples</h4>. The sentence under that heading should read <p>For more examples, see the following algorithms:</p>
The text was updated successfully, but these errors were encountered:
Examples
Remember
For the new examples in the docs:
<h3>Examples</h3>
<p>The following examples demonstrate some common practices for _________.</p>
<h4>Example _: ____________</h4>
for each Example.<h4>Other Examples</h4>
. The sentence under that heading should read<p>For more examples, see the following algorithms:</p>
The text was updated successfully, but these errors were encountered: