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

github.io API documentation out of date #183

Open
xyan264 opened this issue Feb 26, 2020 · 7 comments
Open

github.io API documentation out of date #183

xyan264 opened this issue Feb 26, 2020 · 7 comments
Assignees

Comments

@xyan264
Copy link
Collaborator

xyan264 commented Feb 26, 2020

The API page on
https://microsemi.github.io/switchtec-user/
only shows API version 0.9-rc2.

@lsgunth what tools did you use to generate documents? Maybe I can use the same tool to update API documentation and push to gh-pages.

@lsgunth
Copy link
Collaborator

lsgunth commented Feb 26, 2020

See the doc folder in the repo. The Makefile will generate the documentation. The publish script will update the orphan branch which updates the github.io pages.

@lsgunth
Copy link
Collaborator

lsgunth commented Feb 26, 2020

Pay attention to warnings in the doxygen they indicate bad comments in the source and should be fixed.

@xyan264 xyan264 self-assigned this Feb 26, 2020
@xyan264
Copy link
Collaborator Author

xyan264 commented Mar 10, 2020

@lsgunth The page: https://microsemi.github.io/switchtec-user/ is no longer accessible, is it related to what I did in the morning (below)?

This morning I tried the 'publish' script but got some error messages. And later when I tried to run the script again, it complained 'gh-pages' branch is not found. Maybe due to previous 'git push --force'?

So I went to Microsemi/switchtec-user repository and created 'gh-pages' from master branch, but I still cannot access https://microsemi.github.io/switchtec-user/

Is there some way we can fix this? I'm trying to publish from branch 'rtp-release-psx'.

@lsgunth
Copy link
Collaborator

lsgunth commented Mar 10, 2020

Not sure what you did but it looks like you made a mess of things. I don't understand how you deleted the branch. But I'm not sure exactly why it's not working now.

For starters, the gh-pages branch should be created as an orphan branch so it doesn't share the history of the main repo:

http://stackoverflow.com/questions/13969050/ddg#13969482

Or better yet, you can probably recover the history of the original branch (at least since I last touched it) from:
https://github.com/lsgunth/switchtec-user/commits/gh-pages

The other factor you might be missing is that because you deleted the gh-pages branch, github might have disabled the website. So check that it's enabled in the projects settings (per the attached screenshot).
Screenshot_20200310_145717

@xyan264
Copy link
Collaborator Author

xyan264 commented Mar 10, 2020

@lsgunth Thanks for the instructions.

I have restored the 'gh-pages' (orphan) branch with history in the Microsemi/switchtec-user repo.

The https://microsemi.github.io/switchtec-user/ is not accessible yet. I don't see the 'setting' icon, in the Microsemi/switchtec-user repo, possibly it requires admin privilege. Could you check the settings for me?

Apologies for the inconvenience.

@lsgunth
Copy link
Collaborator

lsgunth commented Mar 10, 2020

I don't have admin privileges either. As I remember, someone at Microsemi held those pretty tightly. You'll have to find out who that is.

@xyan264
Copy link
Collaborator Author

xyan264 commented Mar 10, 2020

Thanks, I'll check with the team and find out.

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

No branches or pull requests

2 participants