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

[DOC] Generate Sphinx #8

Open
4 tasks done
ArthurFerreiraRodrigues opened this issue May 22, 2023 · 4 comments
Open
4 tasks done

[DOC] Generate Sphinx #8

ArthurFerreiraRodrigues opened this issue May 22, 2023 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation medium Medium skill level

Comments

@ArthurFerreiraRodrigues
Copy link
Collaborator

ArthurFerreiraRodrigues commented May 22, 2023

Description:

GitHub pages made with sphinx.

Tasks:

Checklist of tasks that must be performed.

  • Create GitHub pages with sphinx.
  • Put the docs on GitHub Pages.

Acceptance criteria:

  • Done the tasks defined in the issue
  • Have the gitHub pages link of the project
@ArthurFerreiraRodrigues ArthurFerreiraRodrigues added documentation Improvements or additions to documentation medium Medium skill level labels May 22, 2023
@Madu01 Madu01 self-assigned this May 22, 2023
Madu01 added a commit that referenced this issue May 23, 2023
@ArthurFerreiraRodrigues
Copy link
Collaborator Author

ArthurFerreiraRodrigues commented Jun 6, 2023

Description the bug

An error was encountered opening the github pages link.

The page had no styling, it looks like this error is because github pages are unable to read the files correctly.

Expected behavior

What was expected was that the github pages link was styled and with correct accesses.

@Madu01
Copy link
Collaborator

Madu01 commented Jun 18, 2023

The fix for the bug

The fix for this bug was the addition of the .nojekyll file, this file is empty but it helped the github pages to read the files correctly.

--> for more information about this .nojekyll file, go to Jekyll!

@Madu01
Copy link
Collaborator

Madu01 commented Jun 18, 2023

Description:

Put the files in .md in the sphinx document.

Tasks:

Checklist of tasks that must be performed.

  • configure sphinx to accept .md files.
  • comment how to resolve this issue.

Acceptance criteria:

  • Done the tasks defined in the issue

@Madu01
Copy link
Collaborator

Madu01 commented Jun 18, 2023

How to use Markdown in sphinx.

for sphinx to accept .md files it was necessary to install a library locally, with the command:

pip install myst-parser

Then in the conf.py file was added:

extensions = ["myst_parser"]

source_suffix = {
    '.rst': 'restructuredtext',
    '.txt': 'markdown',
    '.md': 'markdown',
}

Then I added the markdown files to the project. In index.rst file I added the names of markdown files.

--> for more information see: sphinx-doc-markdown and Using-Markdown-with-Sphinx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation medium Medium skill level
Projects
None yet
Development

No branches or pull requests

2 participants