Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6980225

Browse files
1 parent5f665d1 commit6980225

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

‎1365/contrib.html

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6716,12 +6716,12 @@ <h3 id="making-larger-changes">Making Larger Changes<a class="headerlink" href="
67166716
<li><strong>Edit files locally or in the GitHub UI</strong>.</li>
67176717
<li><strong>Submit a pull request</strong> with your updates.</li>
67186718
</ul>
6719-
<p>For help with this workflow, check out this helpful guide:<ahref="https://www.dataschool.io/how-to-contribute-on-github/">Step-by-step guide to contributing on GitHub</a>.</p>
6719+
<p>For help with this workflow, check out this helpful guide:<ahref="https://opensource.guide/how-to-contribute/">Step-by-step guide to contributing on GitHub</a>.</p>
67206720
<h3id="updating-indexes">Updating Indexes<aclass="headerlink"href="#updating-indexes"title="Permanent link">&para;</a></h3>
67216721
<p>When you add new articles or reorganize existing ones, be sure to update the following files:</p>
67226722
<ul>
67236723
<li><strong><ahref="https://github.com/cp-algorithms/cp-algorithms/blob/main/src/navigation.md">navigation.md</a></strong>: Update the list of all articles.</li>
6724-
<li><strong><ahref="https://github.com/cp-algorithms/cp-algorithms/blob/main/README.md">README.md</a></strong>:Addnew articlesto the mainproject overview.</li>
6724+
<li><strong><ahref="https://github.com/cp-algorithms/cp-algorithms/blob/main/README.md">README.md</a></strong>:Update the list ofnew articleson the mainpage.</li>
67256725
</ul>
67266726
<h2id="article-syntax">Article Syntax<aclass="headerlink"href="#article-syntax"title="Permanent link">&para;</a></h2>
67276727
<p>We use<ahref="https://daringfireball.net/projects/markdown">Markdown</a> to format articles. Articles are rendered using<ahref="https://squidfunk.github.io/mkdocs-material/">Material for MkDocs</a>, which provides a lot of flexibility. Here are some key features:</p>
@@ -6770,7 +6770,7 @@ <h3 id="article-tags">Article Tags<a class="headerlink" href="#article-tags" tit
67706770
<spanclass="gu">e_maxx_link: &lt;original-link&gt;</span>
67716771
<spanclass="gu">---</span>
67726772
</code></pre></div>
6773-
<p>Replace<code>&lt;original-link&gt;</code> with theURL tothesource article.</p>
6773+
<p>Replace<code>&lt;original-link&gt;</code> with thelast part oftheURL (e.g., for<code>http://e-maxx.ru/algo/euler_function</code>, use<code>euler_function</code>).</p>
67746774
</li>
67756775
</ul>
67766776
<h2id="conventions">Conventions<aclass="headerlink"href="#conventions"title="Permanent link">&para;</a></h2>
@@ -6782,7 +6782,7 @@ <h2 id="local-development-setup">Local Development Setup<a class="headerlink" hr
67826782
<ol>
67836783
<li>
67846784
<p>Clone the repository:</p>
6785-
<divclass="highlight"><pre><span></span><code><spanclass="gp">$</span>git<spanclass="w"></span>clone<spanclass="w"></span>--recursive<spanclass="w"></span>https://github.com/cp-algorithms/cp-algorithms.git<spanclass="w"></span><spanclass="o">&amp;&amp;</span><spanclass="w"></span><spanclass="nb">cd</span><spanclass="w"></span>cp-algorithms
6785+
<divclass="highlight"><pre><span></span><code><spanclass="go">gitclone--recursivehttps://github.com/cp-algorithms/cp-algorithms.git&amp;&amp; cd cp-algorithms</span>
67866786
</code></pre></div>
67876787
</li>
67886788
<li>
@@ -6811,22 +6811,22 @@ <h3 id="optional-plugins">Optional Plugins<a class="headerlink" href="#optional-
68116811
<h2id="testing-code-snippets">Testing Code Snippets<aclass="headerlink"href="#testing-code-snippets"title="Permanent link">&para;</a></h2>
68126812
<p>If your article includes code snippets, it’s helpful to include tests to ensure that they run correctly.</p>
68136813
<ol>
6814-
<li>
6815-
<p>Name the code snippet:</p>
6816-
<divclass="highlight"><pre><span></span><code><spanclass="c1">// code here</span>
6817-
</code></pre></div>
6818-
</li>
6819-
<li>
6820-
<p>Run<code>extract_snippets.py</code> from the<code>test</code> directory to extract snippets into header files. Create a test file that includes these headers and checks their behavior.</p>
6821-
</li>
6822-
<li>
6823-
<p>You can run all tests with the<code>test.sh</code> script:</p>
6824-
<divclass="highlight"><pre><span></span><code><spanclass="gp">$</span><spanclass="nb">cd</span><spanclass="w"></span><spanclass="nb">test</span>
6814+
<li>Name the code snippet:
6815+
<divclass="highlight"><pre><span></span><code><spanclass="c1">// code here</span>
6816+
</code></pre></div></li>
6817+
<li>Run<code>extract_snippets.py</code> from the<code>test</code> directory to extract snippets into header files. Create a test file that includes these headers and checks their behavior.</li>
6818+
<li>You can run all tests with the<code>test.sh</code> script:
6819+
<divclass="highlight"><pre><span></span><code><spanclass="gp">$</span><spanclass="nb">cd</span><spanclass="w"></span><spanclass="nb">test</span>
68256820
<spanclass="gp">$</span>./test.sh
68266821
</code></pre></div>
6827-
</li>
6822+
<strong>Example Output:</strong>
6823+
<code>Running test_aho_corasick.cpp - Passed in 635 ms
6824+
Running test_balanced_brackets.cpp - Passed in 1390 ms
6825+
Running test_burnside_tori.cpp - Passed in 378 ms
6826+
...
6827+
51 PASSED in 49.00 seconds</code>
6828+
This script will run tests and display the results.</li>
68286829
</ol>
6829-
<p>This script will run tests and display the results.</p>
68306830
<p>Additionally, all pull requests will be automatically tested via<ahref="https://github.com/cp-algorithms/cp-algorithms/actions">GitHub Actions</a>.</p>
68316831

68326832
<ulclass="metadata page-metadata"data-bi-name="page info"lang="en-us"dir="ltr">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp