How to reflect apidoc verion in URL - api-doc

https://github.com/apidoc/apidoc
Is there a way to change the apiDoc URL when the version is selected?
I copy the URLs from apiDoc to the code, but when I use URLs from 2.0.0 and access them it defaults to 1.0.1, and I have to manually select 2.0.0 and navigate to the API which renders the URL useless.
How can I copy the URL and navigate to a specified version? I can't find anything in the doc from apiDoc.

Related

Change CSS based on URL

We have created a heroku app using ruby and would like to change the css, page title and some content based off of the URL used to access the app. How would you go about doing that?

Custom Jekyll 404 page is not working on Heroku

I have a Jekyll site deployed to Heroku. I have created a custom 404 error page in source/404.html file. The page can be found at mydomain.com/404/. But when I try to go to pages which don't exist, the custom 404 page doesn't work. And instead I get a blank, default Heroku error page.
What can be a reason for that? Note that a permalink for the page doesn't have an html extension. Can this be a problem?
Have you tried adding a permalink to the YAML front matter?
permalink: /404.html
also I have read that the 404 page is specific to GitHub pages, but worth a try
If you have followed the Heroku official Jekyll setup, you should use 2 buildpacks :
heroku/ruby
https://github.com/heroku/heroku-buildpack-static
The latter allow a static.json configuration file (at the root of your project) to customize nginx. The documentation tells you how to add custom error pages.
In your case, the static.json file should contain :
{
...
"error_page": "404.html",
...
}

Remove /forum/forum from URL in vBulletin

I am using vBulletin 5.0.3 in my site. I installed it in a directory forum but after installation the URL of pages look like http://example.com/forum/forum/page
How can I change this to
http://example.com/forum/page

Mvc Bundling, Cache with Content or Cache with file name?

I'm deciding to remove all versions from static content that has been referenced in my Mvc Web Application. but I need caching.
I want to know does the browser cache contents by file name or by content ?
for example if I Bundle a Jquery version 1.6 without version information (i.e jquery.js), and then I put version 1.8 of jquery with the previous file name (jquery.js). what will happen ? does the browser get the new file or not ?
thanks
Bundling generates the cache code in the bundle url(the ?v=12345) via the actual contents of the file, so you will get a different bundle url that the browser will cache each time you change the actual contents of the bundle.

Issue with PyroCMS clean URLs

What do I need to change to get my site to present the CleanURLS ?
I installed PyroCMS with Apache Mod ReWrite option, the installation was successful, however when I click on the links I get..
http://domainname.com.au/index.php/contact
I want to get..
http://domainname.com.au/contact
If I type the URL in the address bar as http://domainname.com.au/contact Pyro still works and supports the clean URLs however the links are being presented with the index.php. I looked into
\\mywebsite\system\cms\config\config.php
and confirmed that index_page is blank so the system should present the clean URLs unless there is another file I need to amend.
$config['index_page'] = '';
For the record, if you select "Apache (/w mod_rewrite)" this won't happen.
Force regeneration of cached query result by removing the navigation_m model cache folder
located here: system/cms/cache/<site>/navigation_m/
worked for me

Resources