Docusaurus avoids the generation of sites in the "static" folder - web

I have a classic static Docusaurus site working fine.
I also generate a static Doxygen website.
When I open the Doxygen site only, the site is properly generated:
Now if I put the Doxygen website in the static/code folder of the Docusaurus project, the Doxygen files are properly moved at the root of my website after building Docusaurus project.
Now if I visit mywebsite.com/code I see the Doxygen website, but without any JS, and the logo isn't found, as you can see:
How do I integrate another static site into a Docusaurus site? I don't need the Docusaurus layout for this other site, I just want it to work as if it were at the root of the site, but in a sub-folder.

Related

hugo theme with netlify cms white admin page error

My problem is when I try to connect the HUGO theme with Netlify cms, using an official Netlify guide and also 1 blog on how to connect Hugo with netlify cms, when I try to open website/admin then I always get page not found. After adding java snippets in the partials footer.html file, now the cms page is opening but it shows a totally blank page without showing any errors.
Can you tell me what to change as i am new to this and its really confusing to configure netlify cms with ssg themes
I have added two files admin/index.html and admin/config.yml in static folder but still I am not able to authenticate netlify cms with my theme
Github repo i am using: https://github.com/h-enk/henkverlinde.com
AFAIK, your /static folder should contain an admin subfolder, in which a config file and an index page should be.

How to download/mirror my website built using Iweb on mac when i have no access to hosting?

I created a site using Iweb in mac few years ago. But now I don't have the domain.sites file to edit the site. Also, I don't have access to the hosting account since it has been long I have been active on it. I used httrack website copier and dozens of other tools on windows to clone the site, but i am not getting good results. Some resources are not loading on offline version. How can i mirror the site ?
I also tried the python Wpull and linux wget but no good results.
My site is: http://www.smith-lakehomes.com
One way is to manually get all HTML, CSS and JS files via the Chrome 'Inspect' mode imho.
Use the 'Elements' tab for all the HTML and the sources-tab for all JS, CSS etc.

.htaccess file in Jekyll blog

I am trying to resolve the "leverage browser caching" warning for my jekyll blog. I have consulted the HTML5 boilerplate github and cloned the project. I then copied over the .htaccess file into the root directory of my own blog, however, when I retest my website, I still have the same browser caching score. I have confirmed that there is language related to expiration dates within the .htaccess file. My github project can be found here:
https://github.com/thedatasleuth/thedatasleuth.github.io
.htaccess is for an Apache web server. Github pages is not an Apache web server and whatever server technology it is, they don't allow you to adjust those settings.

Subdomain doesn't show images from root Domain (Drupal)

I have a site up and running using Drupal.I use a web-hosting service, that uses Plesk 12 panel.Recently I decided to add a subdomain for the mobile version of my site.So I created a subdomain inside Plesk, pointed it to www.mydomain.com and named it m.mydomain.com.My desktop site is in httpdocs folder and my mobile version in m.mydomain.com folder.Then I added redirection to my mobile site when a mobile device is detected.
The problem is that m.mydomain.com does not show images because they are uploaded in httpdocs/sites/default/files which is my desktop site.Is there a way to access that folder from my subdomain?I have no access to http config files.Is there a way to do this from .htaccess file of my sub-domain?
*UPDATE
My structure is:
root
-----httpdocs
----------desktop site folder
-----------------desktop site files
----------mobile site folder
-----------------mobile site files
----------images
The best option I can think of is to use the Drupal module Domain Access.
From the module's page:
The Domain Access project is a suite of modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database.
Using that, you should be able to apply a different theme to the subdomain site than what you are doing with your main domain. You could use JavaScript or the like to redirect people to the subdomain.
The second option is that there is already a module called Mobile Tools that allow you to change theme and other settings for mobile devices. The description for that module page is as follows:
The Mobile Tools module provides Drupal developers with some tools to assist in making adjustments to your site based on the visitor's device.
It was mentioned in this question, "How to redirect users to mobile site". However, I must caution you against using the Mobile Tools module as it is only in development, and the last contribution to it was 3 years ago. (Plus they have a big warning on their module page that says "Do not use on production".)
Either of these modules should be able to get you started in the right direction.
Instead of doing a redirect, I would place the images in a folder accessible to both systems. My understanding is right now you have something similar to...
site1/images
site2
If you move your images folder higher in your folder architecture to the same level as site1 and site2 and you update your Public file system path and Private file system path in the media configuration to be that directory it will resolve your issues. Essentially your folders will end up looking like this.
site1/
site2/
images/

How do you make a CMS and existing asp.net applications live together peacefully in IIS?

Note: I originally posted this on ServerFault, but I haven't gotten any responses at all. Since it looks like I'm on track to get the Tumbleweed badge over there, I figured I would try here also.
Our existing public website consists of a mish-mash of asp.net pages with mostly static content and some real web applications that are set up as virtual directories. We're now looking at installing Umbraco, which requires that you install it at the root of the website.
Since the CMS would be at the root of the website, I'm assuming it's a bad idea to run our existing pages and web applications underneath Umbraco (due to the URL rewriting it performs and inheriting web.config settings, etc.) So how do we make everything co-exist peacefully both while we transition to the CMS and after we're finished?
My only idea so far was to set up the CMS and the applications as separate websites and then use some sort of URL rewriting/reverse proxy to make everything resolve correctly:
* www.example.com would keep resolving to our old homepage
* www.example.com/dept1 would keep resolving to the old dept1 page
* www.example.com/dept2 would resolve to the new dept2 page on the CMS
* www.example.com/app would resolve to an existing web application
We ending up setting up Umbraco as it's own website in IIS and then we bought ISAPI Rewrite so that we could seamlessly pass through CMS content for certain URLs.

Resources