This is the project that webscraps information from DAZ's Documentation website, processes the information, and outputs a file to allow the use of Visual Studio's Intellisense.
We only use Python to make all of this work.
The result of this generator's output is: JzSense - a javascript file that is used for Intellisense.
Currently, the repository is a mess and the main program almost works. It is almost at the point to distribute header-like files.
See Projects for more info.
Alpha
Here are some problems you can help solve:
If your current operating system is Windows 10, you may ignore this.
1) Make sure you have Python and pip installed somewhere.
sudo apt install python3 python3-pip python3.8-venv
2) Install venv
.
pip install venv
If not admin:
```bash
pip install venv --user
```
Linux (if you haven't done already):
```bash
sudo apt install python3.8-venv
```
3) Git this!
git clone https://github.com/siblount/JzSense-Generator.git
4) Create a venv in the repo.
cd JzSense-Generator
python3 -m venv venv
5) Activate the venv script.
The location varies depending on OS.
Windows: JzSense-Generator/venv/Scripts/
Linux: JzSense-Generator/venv/bin/
Mac: Unknown
Example for Linux:
~/JzSense-Generator$ source venv/bin/activate
(venv) ~/JzSense-Generator$
Example for Windows (Powershell):
```powershell
PS D:\JzSense-Generator> ./venv/Scripts/Activate.ps1
(venv) D:\JzSense-Generator>
```
*For PowerShell, (I believe) you have to change your script-execution settings.*
Example for Windows (Command Prompt):
```cmd
D:\JzSense-Generator> venv/Scripts/activate.bat
(venv) D:\JzSense-Generator>
```
6) Install the dependencies.
(venv) D:\JzSense-Generator>pip install -r requirements.txt
*Note: An error may show up if "bs4" couldn't be installed, this is fine.*
jzsense\scrappers
- ds4
and ds3
are where the code for scrapping data off of the website / local drive is located.
jzsense\js
- where classes such as JSType
are defined.
jzsense\converters
- code to convert the dataclasses into a javascript
format or typescript
format.
jzsense\common
- common functions, most of which are for webscrappers.
pages
- DAZ v3 Documentation located in daz_v3
and current DAZ documentation webpages downloaded.
You may get import errors when attempting to run scripts that aren't in the root directory such as ..\ds4\__init__.py
. Try to run code through the root directory not from a subfolder.
backup
contains the original code I used to create JzSense.
find_deleted_objects.py
is used to call DAZ Studio and determine if symbols from v3 documentation still exists.
I apologize if I mess something up or I don't follow the norms. I am a student and all of this is new to me, so I'll try my best. So please be nice :).
Thank you all!