10928 Posts in 2612 Topics by 1809 members
|Go to End|
11 March 2011 at 8:03am
Ok there is a good chance i'm being a plum but i have installed sapphire docs and it all installed ok but when i go to http://mywebsite/dev/docs i get the layout page but no docs, and the message Were sorry the page you are looking for does not exits... even though there is an index.md file and a few others in that folder. I've looked at the blurb to see if there is a config file i need to change but i can't see if there is anything else i'm supposed to be doing. I'm using ss2.4.5 and the latest build of sapphire docs.
I'm guessing there is something i've missed, any pointers?
11 March 2011 at 5:33pm Last edited: 11 March 2011 5:34pm
I haven't used the sapphiredocs module on it's own for a while but by default automatic registration of docs should be on so it should include any module/docs/* folders. Check that you have a least one of these docs folders available.
FYI docs are not yet bundled with sapphire / cms downloads yet.
11 March 2011 at 8:57pm
Cheers for responding, yea i have put a docs folder in a few modules in fact i may have gone a bit mad and put docs folders everywhere :o) still no joy. It looks like it's all ready to work i bet there must be something silly i'm not doing......
12 March 2011 at 4:28pm
Just tried with a clean checkout and docs setup in the project folder and I got the 404. Looks like somethings broken with loading the first page (without a given module) as the logic seems pretty tied to having a module given. For now you should be able to access your docs on a module by module basis via the url /dev/docs/modulename/..
12 March 2011 at 5:17pm
Ok just pushed a couple fixes to the module (on https://github.com/silverstripe/silverstripe-sapphiredocs) which should fix the showing of the 404 on your main page. Will now give you a list of all the modules.
12 March 2011 at 8:31pm
Many thanks for that, 'it's alive' :o)
8 July 2011 at 11:49am
I've just downloaded the latest code from github.com and I'm getting
Fatal error: Call to undefined method DocumentationService::get_registered_languages() in /usr/local/apps/SilverStripe-v2.4.5/sapphiredocs/code/controllers/DocumentationViewer.php on line 687
when I view mysite.com/dev/docs
I'm guessing this function passes back an array of language codes and names?
ie return array('en' => "English", 'es' => "Spanish" );
8 July 2011 at 1:14pm
wildflower1975 - ah, looks like that comes from the LanguageForm. We haven't yet fully fleshed out multiple language support so in the mean time you can comment out the $LanguageForm var from the template.
|Go to Top|