Reputation: 43350
I'm looking for a way to list all pages on the wiki Home
page instead of the standard welcome message. Here's an example of what I want:
https://github.com/yahoo/oozie/wiki
Upvotes: 28
Views: 13219
Reputation: 951
In my case, I believe, I added a footer page instead of a regular page. Though I deleted the footer page and recreated it as a regular page with the same name, it did not show in index.
Finally, I recreated it with a different name as a regular page. Now it shows in wiki index.
Upvotes: 0
Reputation: 24009
It's possible to delete the home page with git
:
git clone https://github.com/ORG/REPO.wiki.git
cd REPO.wiki
rm Home.md
git add .
git commit -m "remove wiki homepage"
git push
Update: GitHub automatically added a Initial Home page
commit that reset created a Home.md
. So my alternative is generating the Home page myself:
git push
Create a Home.rb
file with this content:
#!/usr/bin/env ruby
File.write('Home.md', Dir['*.md'].reject { |f| f == "Home.md" }.map { |f|
"- [#{f.gsub('.md', '').gsub(/-+/, ' ')}](#{f.gsub('.md', '')})"
}.join("\n"))
ruby Home.rb
git add .
git commit -m "generated home page"
git push
Upvotes: 2
Reputation: 21
Update on this. The delete page
option is not available whilst the page is called Home
. But if you amend it to something else like home_old
, you can then edit it again and you have access to the Delete Page
option. You then have the automatic index page without a redundant Home
page.
Upvotes: 0
Reputation: 22883
As of at least July 2014, none of these suggestions work anymore. They will seem to work at first, and you'll get the page full of links as your homepage, but only temporarily. Regardless of how you delete or rename the Home page, it will be auto-created again the next time you make edits to the wiki.
Upvotes: 7
Reputation: 29
I have just figured out how to do it: Go to Home page > click Edit page > Delete the title and content > Click save. Done, you will see something like https://github.com/host-gator/t/wiki
Upvotes: 1
Reputation: 5701
I just went to Home
page (something like https://github.com/user/repo/wiki), then clicked Edit page
and then Delete page
.
And one important thing: if you deleted Home
page and want to get it back — just create a new page with name Home
.
Upvotes: 5
Reputation: 43350
Got it! The trick was to delete the Home
page, but it was impossible to do directly from github.
Here's a workaround: Go to wiki
/ Git Access
and clone the wiki repository with the provided link. In the cloned repo just delete the file representing the Home
page (in my case it was Home.md
). Push the changes back.
Upvotes: 23