10375 Posts in 2190 Topics by 1707 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 931 Views |
-
Sapphire Docs question

11 March 2011 at 8:03am
Hi ya,
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?
Mick
-
Re: Sapphire Docs question

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.
-
Re: Sapphire Docs question

11 March 2011 at 8:57pm
Hi ya,
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......
Mick
-
Re: Sapphire Docs question

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/..
-
Re: Sapphire Docs question

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.
-
Re: Sapphire Docs question

12 March 2011 at 8:31pm
Many thanks for that, 'it's alive' :o)
cheers
Mick
-
Re: Sapphire Docs question

8 July 2011 at 11:49am
hi
I've just downloaded the latest code from github.com and I'm getting
<code>
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
</code>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" ); -
Re: Sapphire Docs question

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.
| 931 Views | ||
|
Page:
1
|
Go to Top |



