1414 - [ how-to-run-the-solution.md (manditory)] ( #how-to-run-the-solutionmd-manditory )
1515 - [ Language Article] ( #language-article )
1616 - [ description.md (manditory)] ( #descriptionmd-manditory )
17+ - [ Project Article] ( #project-article )
18+ - [ description.md (manditory)] ( #descriptionmd-manditory-1 )
19+ - [ requirements.md (manditory)] ( #requirementsmd-manditory )
1720 - [ Images] ( #images )
1821 - [ General Guidelines] ( #general-guidelines-1 )
1922 - [ Title Image] ( #title-image )
@@ -33,6 +36,7 @@ Before making a pull request, please create one of the following issues:
3336
3437- [ Sample Program Article] [ 1 ]
3538- [ Language Article] [ 2 ]
39+ - [ Project Article] [ 17 ]
3640
3741### Pull Requests
3842
@@ -50,6 +54,7 @@ Please make sure that your pull request follows these guidelines:
5054 For example, https://sampleprograms.io/languages/ada/ . You can tell that this is a stub because
5155 the "Description" section indicates that the section is not available. For more information on
5256 how to write a language article, see [ this] ( #general-guidelines ) and [ this] ( #language-article ) .
57+ - For a project article, see [ this] ( #general-guidelines ) and [ this] ( #project-article ) .
5358- The [ Website Automation] [ 3 ] passes.
5459
5560## Articles
@@ -64,7 +69,7 @@ Please make sure that your article follows these guidelines:
6469 [ this guide] [ 5 ] .
6570- If you use someone else's work, please cite your references.
6671- If your article requires multiple files (such as a sample program article) and you use
67- numbered references, the numbers * must* be unique\ . For example, you have this for your last
72+ numbered references, the numbers * must* be unique. For example, you have this for your last
6873 numbered reference in the first file:
6974
7075 ``` markdown
179184```
180185</pre >
181186
187+ ### Project Article
188+
189+ A project article describes a new or existing project. For a new project, please see the
190+ [ Requirements for a New Project section of the Sample Programs Contributing Guide] [ 19 ] .
191+
192+ Files for this article are placed in the ` sources/project/<project> ` folder, where:
193+
194+ - ` <project> ` is the project name in lowercase, with spaces converted to dashes. For example,
195+ ` binary-search ` for the "Binary Search" project.
196+
197+ This folder must be created. The next sections describe the files that go into this folder.
198+ Images go into the same folder. These are optional. See [ Images] ( #images ) for details.
199+
200+ #### description.md (manditory)
201+
202+ This file describes a new or existing project. It gives some background information on the
203+ project and provides enough details that someone can implement a sample program in their chosen
204+ language. It should provide an example that demonstrates what the project does for some sample
205+ input (if applicable).
206+
207+ #### requirements.md (manditory)
208+
209+ This file describes the inputs, outputs, and constraints of this project in general terms. For example:
210+
211+ <pre >
212+ Create a file called "Even Odd" using the naming convention appropriate for your language of choice.
213+
214+ Write a sample program which accepts an integer on the command line and outputs if the integer is Even
215+ or Odd. For a missing input or an input that is not an integer, an error message is output.
216+ </pre >
217+
182218## Images
183219
184220Images may be one of the following (unless otherwise noted):
@@ -227,6 +263,8 @@ same image as the project:
227263
228264For language articles, [ this] [ 11 ] is the default image.
229265
266+ For project articles, [ this] [ 18 ] is the default image.
267+
230268### Other Images
231269
232270Other images may be added to your articles to help clarify key points more clearly than words
@@ -243,8 +281,9 @@ Local images are referenced like this:
243281where ` <image-directory> ` is one of the following directories, and ` <image-filename> `
244282is the filename of the image:
245283
246- * Sample program article: ` /assets/images/projects/<language >/<project > `
284+ * Sample program article: ` /assets/images/projects/<project >/<language > `
247285* Language article: ` /assets/images/languages/<language> `
286+ * Project article: ` /assets/images/projects/<project> `
248287
249288For example:
250289
@@ -289,8 +328,8 @@ Now, run `./generate.sh`. This will build the website, create a temporary web se
289328up the home webpage in your default browser at ` http://localhost:8000/index.html ` . When you are done,
290329just press Ctrl+C to exit the web server.
291330
292- [ 1 ] : https://github.com/TheRenegadeCoder/sample-programs-website/issues/new?assignees=&labels=sample+program&projects=&template=sample-program-article-request.md&title=Add+%5BSample+Program%5D+ in+%5BLanguage%5D +Article
293- [ 2 ] : https://github.com/TheRenegadeCoder/sample-programs-website/issues/new?assignees=&labels=language&projects=&template=language-article-request.md&title=Add+%5BLanguage%5D +Language+Article
331+ [ 1 ] : https://github.com/TheRenegadeCoder/sample-programs-website/issues/new?assignees=&labels=sample+program&projects=&template=sample-program-article-request.md&title=Add+{PROGRAM}+ in+{LANGUAGE} +Article
332+ [ 2 ] : https://github.com/TheRenegadeCoder/sample-programs-website/issues/new?assignees=&labels=language&projects=&template=language-article-request.md&title=Add+{LANGUAGE} +Language+Article
294333[ 3 ] : https://github.com/TheRenegadeCoder/sample-programs-website/actions/workflows/main.yml
295334[ 4 ] : https://github.com/TheRenegadeCoder/sample-programs
296335[ 5 ] : https://www.markdownguide.org/basic-syntax/
@@ -305,3 +344,6 @@ just press Ctrl+C to exit the web server.
305344[ 14 ] : https://docs.docker.com/engine/install/
306345[ 15 ] : https://pypi.org/project/poetry/
307346[ 16 ] : https://pypi.org/project/pip/
347+ [ 17 ] : https://github.com/TheRenegadeCoder/sample-programs-website/issues/new?assignees=&labels=project&projects=&template=project-article-request.md&title=Add+{PROJECT}+in+Every+Language+Article
348+ [ 18 ] : https://github.com/TheRenegadeCoder/sample-programs-website/blob/main/sources/projects/featured-image.jpg
349+ [ 19 ] : https://github.com/TheRenegadeCoder/sample-programs-website/blob/main/.github/CONTRIBUTING.md#requirements-for-a-new-project
0 commit comments