How to Set the base path for .md files in open api-generator tool - docsify

I am using openapi generator for creating the sdk clients for java and python.
These sdk clients created some mardown file (.md) under docs folder and using those md files I am creating gitlab pages via docsify tool.
But whenever I am opening the gitlab page and wants to navigate to one page from another page then it throws 404 bcz the path present of that md file in another md file is different.
I am facing some issue with .md files such that some md files are internally navigate to other md files but bcz these files are auto generated so I am not able to changes the navigation path.
How can we set the base path?
file_name : modelServe
cmd: java -jar openapi-generator-cli.jar generate -p --package-name modelServe -i api-specs/modelServe.yml -g python -o clientsdk/modelServe/python

Related

How can I download a folder from google drive or dropbox using command in linux?

I am trying to download a folder using command in linux shell using dropbox or google drive link. The download works but it is not saved as a folder, after it is downloaded I cannot access it using 'cd ..' command. So the folder is downloaded but when I use cd .. , I get the message that the file is not a directory.
How can I download a folder and access it? I am also executing this in virtual machine.
I do not know which method you are using to download the directory. In order to download a directory, you need to recursively download all the files in it or, create a tar or zip for the directory.
You can consider using gdown.
Please also read the detailed explanation from the following post: wget/curl large file from google drive

Convert node application to executable file for linux, window & Mac

I have a nodeJS application, it has 2 routes containing views and one API.
what I need is to convert this to one file, so that client can just click on the file and run it.
I used npm pack, pkg module to do it but the issue is.
It creates an executeable file but it runs only in project directory if I copy that to some other folder and run it fails, it needs other files.
I need to make only one file so that I can give it to anyone needed, instead of the folder containing node modules and other files along with the executeable file

Change output file when packaging a chrome extension

When I package my extension folder it outputs with the same name and in the same directory
In the terminal:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --pack-extension=./extension
My project folder:
root/
extension/
manifest.json
...
extension.crx
extension.pem
How can I change the name of the .crx and .pem files and also their destination?
Thanks.
There is no built-in option in Chrome to change the name or destination. You can either add a command to your build process to move the generated files or use the CRX building scripts published here to directly build the files as you please. The one in Ruby already has the options you need. The bash one would require some modification.

trouble creating an axis 2 .aar file: xml/services not found error

I am trying to create an aar file using OSX 10.7.5 (as a part of this tutorial). To generate the .aar, I navigate to the directory holding my webservice in my eclipse workspace and type
jar cvf FirstWebService.aar ./*
This is the command that Apache says to use to generate the aar in their Code Listing 9 from the apache axis 2 documentation.
The command creates an.aar -- but something is wrong with the process that I am using to create the .aar because when I go to load the .aar file into tomcat's /webapps I get an .xml/services not found error.
I am not sure what to do to fix this error. If I search my computer's file system for the services.xml file, I can find it in /path to eclipse workspace/workspace/MyFirstWebService/WebContent/WEB-INF/services/FirstWebService/META-INF
but I am not sure if this file is supposed to be rolled in to the .aar file somehow or if I can just manually plunk this file somewhere into the apache directory structure to get the thing to run.
Note: I do not think I am manually unzipping or unpacking the aar like in this question. Axis2 web service error: services.xml not found I am just running the command listed above from the apache documentation.
Here is the .aar file
note I am using all of the same versions of the software as in the tutorial -- but I am using OSX 10.7.5 where they use windows in the tutorial. Accordingly, I have changed the make-aar command for windows shown in the tutorial (jar cvf FirstWebService.aar com META-INF) into the one shown above. If I just try to run the command from the tutorial jar cvf FirstWebService.aar com META-INF I get the same xml/services not found error. It gives this output in the terminal...
com: no such file or directory
META-INF: no such file or directory
added manifest
I found the issue. When you type the command to create the aar file you have to be in the directory .../EclipseWorkspace/EclipseProjectName/WebContent/WEB-INF/services. This directory contains /META-INF/services.xml. The process that makes the .aar file must be looking in this folder.

phonegap Blackberry webworks plugin

I am trying to create a BlackBerry Webworks plugin using Phone gap. I am trying to follow the instructions given in this link:
http://wiki.phonegap.com/w/page/35799737/How%20To%20Create%20a%20PhoneGap%20Plugin%20for%20BlackBerry%20WebWorks
however, the directory structure mentioned in the link and mine vary significantly, also there is no build.xml in the root directory to run the
ant create-plugin command,
Since Phonegap being converted to Cordova Project, has something changed in the process to be followed?
Thanks in advance.
Currently the way plugin is added is different:
Add customplugin.js to your project's www folder and include a reference to it in your html file after cordova.js.
Add the plugin source to your cordova.jar in your projects ext folder. Open cordova.jar with your favorite archive manager or use the jar to copy the CustomPlugin.java file into org/apache/cordova/plugins directory.
In your projects plugins.xml file add the following line:
ref:
https://github.com/phonegap/phonegap-plugins/tree/master/BlackBerry/ChildBrowser

Resources