Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Sapphire Docs question

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1072 Views
  • cumquat
    Avatar
    Community Member
    190 Posts

    Sapphire Docs question Link to this post

    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

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Sapphire Docs question Link to this post

    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.

  • cumquat
    Avatar
    Community Member
    190 Posts

    Re: Sapphire Docs question Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Sapphire Docs question Link to this post

    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/..

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Sapphire Docs question Link to this post

    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.

  • cumquat
    Avatar
    Community Member
    190 Posts

    Re: Sapphire Docs question Link to this post

    Many thanks for that, 'it's alive' :o)

    cheers

    Mick

  • wildflower1975
    Avatar
    Community Member
    59 Posts

    Re: Sapphire Docs question Link to this post

    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" );

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: Sapphire Docs question Link to this post

    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.

    1072 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.