----- On Jan 27, 2016, at 11:44 PM, Dewey [email protected] wrote:

> ----- On Dec 10, 2015, at 12:47 PM, Paul Higham [email protected] wrote:
> 
>> Thanx! This worked perfectly and, of course, the information was ‘hiding’ in
>> plain sight!
>> 
>> :: paul
>> 
>>> On Dec 9, 2015, at 19:36 , Andy Bradford
>>> <[email protected]> wrote:
>>> 
>>> Thus said Paul Higham on Wed, 09 Dec 2015 16:32:53 -0800:
>>> 
>>>> have the home page  of the repository be rendered from  a file such as
>>>> homePage.md where this file is itself under source control in the same
>>>> repository (this way  I could edit the home page  in my favourite text
>>>> editor) from  a wiki  page written  using markdown,  create a  link to
>>>> another wiki page also written using markdown
>>> 
>>> This   is  precisely   how   Fossil  does   it   using  the   ``Embedded
>>> Documentation''  feature if  you look  at www.fossil-scm.org  you'll see
>>> that  the default  Home Page  is  not a  wiki  at all,  but an  embedded
>>> document that is revision controlled:
>>> 
>>> http://www.fossil-scm.org/index.html/artifact/89c650d5efb9273a
>>> 
>>> Login  to your  Fossil repository  and navigate  to Admin->Configuration
>>> (/setup_config page), then  change the Index Page setting  from /home to
>>> /doc/tip/www/homePage.md (or whatever the path  is in your repository to
>>> homePage.md).
>>> 
>>> If you want  this page to be publicly visible  without logging in you'll
>>> also  need  to  visit  Admin->Access (/setup_access  page)  and  include
>>> /doc/tip/www/* in your Public Pages setting.
>>> 
>>> Andy
> 
> i have this working now - thanks for the original question, and the answer!
> 
> next question; what is the minimum required capabilities for anonymous in
> order to view the page as configured above? i want any user to be able to
> view this one page (README.md in my case), but want anonymous to be able
> to do nothing else. so far, it appears as if "o" is required for anonymous
> to see this page; unfortunately, that allows access to the other files as
> well.
> 
> what am i missing?

to be more specific, just in case ... my repo contains the following file:
    docs/public/README.md

i would like this to be the page that is displayed when someone visits the
repository via web browser, to act as the front page for the project, just
as it works for:
    http://fossil-scm.org/index.html/doc/trunk/www/index.wiki

basically i want a non-public reposotiry with a public front page.

i have the following set for index-page:
    /doc/tip/docs/public/README.md

i have the following set for public-pages:
    /doc/tip/docs/public/*

when i visit the page without being logged in, and with default capabilities
for both anonymous and nobody, i see the page. however, without being logged
in even as anonymous i am also able to peruse other files and such. changing
capabilities of anonymous/nobody so far has not enabled me to see the front
page without being logged in, while removing access to the other files.

is what i'm attempting to do even possible? is my problem with using a
format of markdown instead of using the baked-in wiki?

clues would be appreciated here.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to