Skip to content
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

feature/GithubPages #26

Merged
merged 1 commit into from
Aug 19, 2024
Merged

feature/GithubPages #26

merged 1 commit into from
Aug 19, 2024

Conversation

dan5e3s6ares
Copy link
Owner

@dan5e3s6ares dan5e3s6ares commented Aug 19, 2024

Update git_pages

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Summary by Sourcery

Add a new feature to generate a static site for ARMA documentation using Sphinx, including stylesheets, JavaScript utilities, and HTML files. The documentation covers various topics such as usage scenarios, contributing guidelines, and a code of conduct.

New Features:

  • Add support for generating a static site using Sphinx, including stylesheets, JavaScript utilities, and HTML files for documentation.

Documentation:

  • Introduce comprehensive documentation for ARMA, covering topics such as usage scenarios, contributing guidelines, and a code of conduct.

Copy link

sourcery-ai bot commented Aug 19, 2024

Reviewer's Guide by Sourcery

This pull request implements a new feature for GitHub Pages. It adds several new files and configurations to set up documentation using Sphinx. The main changes include adding new HTML, CSS, and JavaScript files for the documentation site, as well as configuration files for Sphinx. The PR also removes a GitHub Actions workflow file related to GitHub Pages.

File-Level Changes

Files Changes
docs/source/conf.py
docs/Makefile
Added Sphinx configuration files (conf.py and Makefile) to set up the documentation build process
docs/_build/index.html
docs/_build/mocking.html
docs/_build/scenarios.html
docs/_build/CODE_OF_CONDUCT.html
docs/_build/CONTRIBUTING.html
docs/_build/ways_to_use.html
docs/_build/sponsor.html
docs/_build/thanks.html
docs/_build/help.html
docs/_build/search.html
docs/_build/genindex.html
Added multiple HTML files for the documentation pages, including index, mocking, scenarios, and various other pages
docs/_build/_static/basic.css
docs/_build/_static/pygments.css
docs/_build/_static/styles/sphinx-book-theme.css
docs/_build/_static/styles/theme.css
Added CSS files for styling the documentation, including a basic CSS file and theme-specific styles
docs/_build/_static/searchtools.js
docs/_build/_static/doctools.js
docs/_build/_static/sphinx_highlight.js
docs/_build/_static/language_data.js
docs/_build/_static/documentation_options.js
docs/_build/_static/scripts/pydata-sphinx-theme.js
docs/_build/_static/scripts/sphinx-book-theme.js
Added JavaScript files for documentation functionality, including search and theme-related scripts
docs/_build/_sources/scenarios.md
docs/_build/_sources/index.md
docs/_build/_sources/mocking.md
docs/_build/_sources/CODE_OF_CONDUCT.md
docs/_build/_sources/CONTRIBUTING.md
docs/_build/_sources/ways_to_use.md
docs/_build/_sources/thanks.md
docs/_build/_sources/sponsor.md
docs/_build/_sources/help.md
Added source Markdown files for documentation content
docs/make.bat Added a Windows command file for Sphinx documentation build
.github/workflows/git_pages.yaml Removed GitHub Actions workflow file for GitHub Pages

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

@dan5e3s6ares dan5e3s6ares merged commit f87d7ff into main Aug 19, 2024
2 checks passed
@dan5e3s6ares dan5e3s6ares deleted the feature/GithubPages branch August 19, 2024 23:08
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @dan5e3s6ares - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider generating documentation files as part of a build process rather than committing them directly. This would keep the repository cleaner and easier to maintain.
  • The addition of documentation is great, but try to minimize the number of generated files in the repository. Consider using a .gitignore file to exclude build artifacts.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟡 Documentation: 5 issues found

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -0,0 +1,85 @@
# Scenarios

With ARMA you can create scenarios by adding your own uses cases to OpenAPI paths.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (documentation): Typo: 'uses cases' should be 'use cases'

Comment on lines +41 to +42
Its response method takes a Request object and a url_data dictionary as input.<p>
It returns a JSON response with the message "from SimpleFunction" and a status code of 201.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (documentation): Remove unnecessary HTML tags

The '

' tags are not needed in this context and should be removed for consistency.

Comment on lines +73 to +77
Its response method also takes a Request object and a url_data dictionary.<p>
It retrieves the JSON payload from the request body using await request.json().<p>
It checks the value of payload["payload_id"]:<p>
If it's "123", it uses the jsf library to generate fake data based on the schema specified in url_data['responses']["200"]['schema'] and returns a JSON response with the generated data and a status code of 200.<p>
If it's not "123", it generates fake data based on the schema in url_data['responses']["405"]['schema'] and returns a JSON response with the generated data and a status code of 405.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (documentation): Remove unnecessary HTML tags

The '

' tags are not needed in this context and should be removed for consistency.

```json
{
"mock_api_swaggerUrl": "https//www.yourapi.com/doc/swagger.json",
"mock_api_swaggerYamlUrl": "https//www.yourapi.com/doc/swagger.ymal",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (documentation): Typo in JSON example: 'swagger.ymal' should be 'swagger.yaml'

2. Fork the project
3. Create your feature branch (`git checkout -b feat/amazing_feature`)
4. Commit your changes (`git commit -m 'feat: add amazing_feature'`) {% if cookiecutter.use_conventional_commits == 'y' -%}
{{cookiecutter.project_name}} uses [conventional commits](https://www.conventionalcommits.org), so please follow the specification in your commit messages.{% endif %}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (documentation): Replace placeholder with actual project name

The placeholder '{{cookiecutter.project_name}}' needs to be replaced with the actual name of the project.

};

var c = "[^aeiou]"; // consonant
var v = "[aeiouy]"; // vowel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): Use const or let instead of var. (avoid-using-var)

Explanation`const` is preferred as it ensures you cannot reassign references (which can lead to buggy and confusing code). `let` may be used if you need to reassign references - it's preferred to `var` because it is block- rather than function-scoped.

From the Airbnb JavaScript Style Guide


var c = "[^aeiou]"; // consonant
var v = "[aeiouy]"; // vowel
var C = c + "[^aeiouy]*"; // consonant sequence
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): Use const or let instead of var. (avoid-using-var)

Explanation`const` is preferred as it ensures you cannot reassign references (which can lead to buggy and confusing code). `let` may be used if you need to reassign references - it's preferred to `var` because it is block- rather than function-scoped.

From the Airbnb JavaScript Style Guide

var c = "[^aeiou]"; // consonant
var v = "[aeiouy]"; // vowel
var C = c + "[^aeiouy]*"; // consonant sequence
var V = v + "[aeiou]*"; // vowel sequence
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): Use const or let instead of var. (avoid-using-var)

Explanation`const` is preferred as it ensures you cannot reassign references (which can lead to buggy and confusing code). `let` may be used if you need to reassign references - it's preferred to `var` because it is block- rather than function-scoped.

From the Airbnb JavaScript Style Guide

var C = c + "[^aeiouy]*"; // consonant sequence
var V = v + "[aeiou]*"; // vowel sequence

var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): Use const or let instead of var. (avoid-using-var)

Explanation`const` is preferred as it ensures you cannot reassign references (which can lead to buggy and confusing code). `let` may be used if you need to reassign references - it's preferred to `var` because it is block- rather than function-scoped.

From the Airbnb JavaScript Style Guide

var V = v + "[aeiou]*"; // vowel sequence

var mgr0 = "^(" + C + ")?" + V + C; // [C]VC... is m>0
var meq1 = "^(" + C + ")?" + V + C + "(" + V + ")?$"; // [C]VC[V] is m=1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (code-quality): Use const or let instead of var. (avoid-using-var)

Explanation`const` is preferred as it ensures you cannot reassign references (which can lead to buggy and confusing code). `let` may be used if you need to reassign references - it's preferred to `var` because it is block- rather than function-scoped.

From the Airbnb JavaScript Style Guide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant