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

gh-pages deployment with material theme #2966

Merged
merged 5 commits into from
Dec 4, 2020
Merged

Conversation

NelsonVides
Copy link
Collaborator

So this PR does several things. The point is to migrate to gh-pages, as it allows us to use any theme we want, which enables us to move forward with the idea of improving the look&feel of the mongooseim documentation.

This documentation is generated using mike, which, using mkdocs and material, enables us to build several versions, tagging them and pushing them.

How mkdocs generate these sites? Compiling all the markdown files and the mkdocs.yml into a huge bunch of static html and css files. mike injects some minor javascript then to allow to change versions. These lots of autogenerated files are then pushed to a github repo that github allows to serve as static pages. But the amount of autogenerated stuff is too big to keep in our main repo, so these things are pushed to a new repo we've made, https://github.com/esl/MongooseDocs.

More things that this PR does: migrating all links to readthedocs to our new pages, improving some http-to-https links (my firefox complained about that), improving some minor indentation and whitespace in doc files, and, importantly, adding building docs to the CircleCI pipeline. All branches will be built, but only tags and master will then be pushed.

This reverts commit 3c5c0b1, reversing
changes made to ed39d02.
The cause of this 404: locally mkdocs serves this "configuration files"
page as localhost:8000/Advanced-configuration/, while on github.io we
have .github.io/MongooseIM/advanced-configuration/configuration-files/,
mind the last part of the link. The latter way of handling it is the
correct one.

If we want to keep this chapter as “configuration files”, in mkdocs.yml it should be:
  - 'Configuration':
      - 'Configuration files': 'advanced-configuration/Configuration-files.md'
andalso  mv doc/Advanced-configuration.md doc/advanced-configuration/Configuration-files.md.
The last step is to update its link in Jingle-SIP-setup.md and everything is clean.
@NelsonVides NelsonVides added the doc label Dec 3, 2020
@NelsonVides NelsonVides force-pushed the docs_material_deploy branch 5 times, most recently from f5d7c84 to cd14885 Compare December 3, 2020 17:39
Copy link
Contributor

@leszke leszke left a comment

Choose a reason for hiding this comment

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

Good effort of moving our shiny new docs to gh-pages! Now we all can be proud of its new look ❤️

@leszke leszke merged commit 368b086 into master Dec 4, 2020
@leszke leszke deleted the docs_material_deploy branch December 4, 2020 14:38
@leszke leszke added this to the 4.1.0 milestone Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants