mozziemozz/awesome-docfx-template

SharePoint page display issues

Closed this issue · 13 comments

Hi Martin Heusser
When I execute this script "BuildDocFxForSPO.ps1" to upload a file to a SharePoint document library, I open the index.aspx home page as follows, and I can't see the TOC, have you encountered this problem?

image

I don't think I have. It's been a while since I created and tested this though. Let me check later and get back to you.

Okay, thanks for the quick reply.

@mozziemozz
Any update on this issue?

Thanks,
Eric Jia

No, sorry it will take me some time to test this. Thanks for your understanding.

No problem, if you are experiencing the same issue please let me know as well, thanks for the time.

have you tried to serve the site locally? You probably have the same issue there? I looked at it today and it looks like the new DocFx version creates a new/empty project quite differently so it will require some work from me. I'll implement a required version check of DocFx to make sure that my scripts are working after I tested everything. Thanks for your patience.

I haven't tried deploying it locally, only on SharePoint Online version. It's probably due to the version differences you mentioned. Since I'm not very familiar with this knowledge, I couldn't identify the specific problem.

Hi @ericjia888 I pushed some updates today. Please remove the cloned repo from your system and clone again. Newer DocFx versions use a different init function so I created a default DocFx project using an older version and put that into the repo. .\Docs now contains a vanilla version and then the Initialize-AwesomeDocFx.ps1 applies changes to that.

You'll need to install DocFx Version 2.75.1 for it to work.

Hi Martin Heusser
I've tested it and now this version is working, I'd like to ask if DocFx works with versions greater than 2.75.1 as well? I see that you have added a version check in your code, so if you want to iteratively update DocFx at a later stage it will be affected.

Thanks,
Eric Jia

Hi Eric,

If you want to use a newer DocFx version, just update the version which is checked in the script to the version you're using, or remove the check entirely. You only need to run this script when you create a new project/docs site. After that, you can use a newer version to build the site.

Okay, thanks for your help.

Hi Martin Heusser
Do you know where the assignment logic for the docurl parameter is?
See that it's pointing to your GitHub URL.

image
image

Hi Martin Heusser
Do you know where the assignment logic for the docurl parameter is?
See that it's pointing to your GitHub URL.

image
image