Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
List The Docs allows to collect the documentation of projects hosted in different servers in the same page.
See full documentation at https://allebacco.github.io/listthedocs/.
List The Docs does not (actually) provides documentation hosting, but it offer only a web page with a nice list of project and documentation links.
This work has been started from Host the Docs, but has lead to a complete rewrite of the code and the aim of the project.
The project is written in Python using Flask.
Since List The Docs is writte using Flask it can be execute with the follwing commands:
export FLASK_APP=listthedocs
flask run
* Running on http://127.0.0.1:5000/
For Windows commandline use:
set FLASK_APP=listthedocs
And for Windows Powershell use:
$env:FLASK_APP="listthedocs"
The service can be configured with a Python file config.py
that can be placed in the app
"instance_path" (https://flask.palletsprojects.com/en/1.0.x/config/#instance-folders).
The instance_path can be customized by setting the INSTANCE_PATH to an absolute path.
The configuration is loaded from the config.py
in the instance_path:
root
user. Default ROOT-API-KEY
.The service provides a set of REST APIs to manage projects and versions.
Before using the APIs, you should build the documentation (e.g. with Sphinx, MkDocs, Doxygen, ...) and host it on a web server. List The Docs does not actuallt provides docuemntation hosting services.
After deploying a (new) project documentation on a hosting service, you can visualize it in List The Docs:
Adding a project to List The Docs can be done using the following REST API:
import requests
response = requests.post(
'http://localhost:5000/api/v1/projects',
json={
'title': 'Project Title',
'description': 'The description of the project',
}
)
# The response contains the `name` of the project
Adding a version for a project documentation to List The Docs can be done using the following REST API:
import requests
requests.post(
'http://localhost:5000/api/v1/projects/<project-name>/versions',
json={
'name': '1.0.0',
'url': 'http://www.example.com/doc/1.0.0/index.html',
}
)
To simplify the management of the projects, List The Docs provides a simple Python client:
from listthedocs.client import ListTheDocs, Project, Version
client = ListTheDocs()
project = client.add_project(
Project(title='Project Title', description='description')
)
client.add_version(
project,
Version('1.0.0', 'http://www.example.com/doc/1.0.0/index.html')
)
FAQs
List your documentations
We found that listthedocs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.