{"id":31484240,"url":"https://github.com/fydar/fydar.samples","last_synced_at":"2025-10-02T09:56:39.059Z","repository":{"id":135798629,"uuid":"413261208","full_name":"fydar/Fydar.Samples","owner":"fydar","description":"A library for maintaining code samples and generating documentation.","archived":false,"fork":false,"pushed_at":"2024-07-01T16:05:58.000Z","size":471,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-30T09:35:46.016Z","etag":null,"topics":["csharp"],"latest_commit_sha":null,"homepage":"https://fydar.dev/portfolio/samples","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fydar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"docs/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-04T03:24:42.000Z","updated_at":"2024-07-10T07:28:00.000Z","dependencies_parsed_at":"2024-06-19T15:32:36.113Z","dependency_job_id":"3daa0bc7-5161-404c-a2e1-1f1ec6bff2b3","html_url":"https://github.com/fydar/Fydar.Samples","commit_stats":null,"previous_names":["fydar/samples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fydar/Fydar.Samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fydar%2FFydar.Samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fydar%2FFydar.Samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fydar%2FFydar.Samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fydar%2FFydar.Samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fydar","download_url":"https://codeload.github.com/fydar/Fydar.Samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fydar%2FFydar.Samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277987455,"owners_count":25910597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp"],"created_at":"2025-10-02T09:56:37.843Z","updated_at":"2025-10-02T09:56:39.053Z","avatar_url":"https://github.com/fydar.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e\n  \u003cimg src=\"./src/libs/Fydar.Samples/icon.png\" width=\"60\" height=\"60\" align=\"left\" /\u003e\n  Fydar.Samples\n\u003c/h1\u003e\n\n**Fydar.Samples** is a library for maintaining code samples and generating documentation for **C#**.\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"/src/libs/Fydar.Samples\"\u003e\u003cimg src=\"./src/libs/Fydar.Samples/icon.png\" width=\"90\" height=\"90\" align=\"center\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"/src/libs/Fydar.Samples.Grammars.CSharp\"\u003e\u003cimg src=\"./src/libs/Fydar.Samples.Grammars.CSharp/icon.png\" width=\"44\" height=\"44\" align=\"center\" /\u003e\u003c/a\u003e\n  \u003ca href=\"/src/libs/Fydar.Samples.Grammars.Json\"\u003e\u003cimg src=\"./src/libs/Fydar.Samples.Grammars.Json/icon.png\" width=\"44\" height=\"44\" align=\"center\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./img/how-to-use.svg\" alt=\"A demo of how to use Fydar.Samples to generate samples.\"/\u003e\n  \u003csup\u003e\u003ci\u003eA demo of how to use Fydar.Samples to generate samples.\u003c/i\u003e\u003c/sup\u003e\n\u003c/p\u003e\n\nSamples are kept within your project and can be presented via two mechanisms.\n\n- *File System* sampling is used to present code samples.\n- *Sample Return* is used to present the result of a method.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./img/serialization-sample.svg\" alt=\"A sample maintained using this project.\"/\u003e\n  \u003csup\u003e\u003ci\u003eA demo of how to use Fydar.Samples to generate samples.\u003c/i\u003e\u003c/sup\u003e\n\u003c/p\u003e\n\nWhen the application is run, all static methods with the `SampleReturn` attribute are invoked and their results are presented in the output.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./img/serialization-sample-output.svg\" alt=\"The formatted output of the sample.\"/\u003e\n  \u003csup\u003e\u003ci\u003eThe formatted output of the sample.\u003c/i\u003e\u003c/sup\u003e\n\u003c/p\u003e\n\n## 🔧 Installation\n\nInclude a reference to the project (NuGet package coming soon) in your solution.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./img/installation-csproj.png\" alt=\"A properly configured .csproj file.\"/\u003e\n  \u003csup\u003e\u003ci\u003eA properly configured .csproj file.\u003c/i\u003e\u003c/sup\u003e\n\u003c/p\u003e\n\nSample `.cs` files will need to be included in the build output so the syntax highlighter will be able to operate on them.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./img/project-layout.png\" alt=\"Solution with samples included in the samples directory.\"/\u003e\n  \u003csup\u003e\u003ci\u003eSolution with samples included in the samples directory.\u003c/i\u003e\u003c/sup\u003e\n\u003c/p\u003e\n\n## ⚖ License\n\nThis work is licensed under a [Creative Commons Attribution-NonCommercial 4.0 International License](http://creativecommons.org/licenses/by-nc/4.0/).\n\n[![Creative Commons License](https://i.creativecommons.org/l/by-nc/4.0/88x31.png)](http://creativecommons.org/licenses/by-nc/4.0/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffydar%2Ffydar.samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffydar%2Ffydar.samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffydar%2Ffydar.samples/lists"}