Giter VIP home page Giter VIP logo

www's Introduction

www

Web pages for the SWIG web site at http://www.swig.org

The majority of the SWIG web site consists of pages generated by tools. The subdirectories containing the documentation are generated by developers when a new version of SWIG is released. The remaining pages are generated from the files in this directory by running a simple Python script as follows:

python makeweb.py
  • The .ht files contain html markup and fill in the main content of each generated .html file.
  • The .ph files contain html markup and php code and contain the main content of each generated .php file.
  • The default.* files are template files and are used to provide the same html markup at the top, bottom and side of each of the generated .html and .php files.

The most common changes are made by editing the .ht files, running the Python script then viewing the resulting html pages.

SWIG developers should look at the Makefile for updating the documentation for new releases and for pushing contents to the web server.

www's People

Contributors

breyed avatar darthgandalf avatar mkoeppe avatar ojwb avatar wsfulton avatar xavier98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

www's Issues

MagpieRSS used to generate index.html does not work with PHP8

Given SWIG has dropped support for PHP7 in swig-4.2.0 and testing is now done with PHP8, we need to update the website generation for PHP8 too.

The index.html file is generated by running:

make updateweb

which simply runs:

python makeweb.py

One of the steps it does is generate index.php from index.ph, then index.html is more or less generated by running:

php index.php > index.html

This final step fails with PHP8 and does not give any errors.

Some php expertise would be much appreciated to provide a fix. Alternatively perhaps replace this all with something completely different or replace magpierss (which hasn't been maintained for a decade with something else like simplepie simplepie comparisons.

Web site www.swig.org cannot resolved even on authorized NS ns11.worldnic.com or ns12.worldnic.com

$ dig @ns11.worldnic.com www.swig.org A +norecurse

; <<>> DiG 9.18.20 <<>> @ns11.worldnic.com www.swig.org A +norecurse
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 40490
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
; EDE: 15 (Blocked): (Request blocked by policy)
;; QUESTION SECTION:
;www.swig.org.                  IN      A

;; Query time: 17 msec
;; SERVER: 162.159.26.214#53(ns11.worldnic.com) (UDP)
;; WHEN: Tue Feb 13 12:52:22 JST 2024
;; MSG SIZE  rcvd: 72

What happend?

Though swig.org can be resolved and https://swig.org/ seems to show us same contents of https://www.swig.org ...

How are PDF files generated from their corresponding HTML files in swig/www?

Problem Description

Hello, Swig Development Team.

I noticed that there are some PDF files stored in this swig/www repository. And they seems to be generated from their corresponding HTML files. For example:

I wonder how are those PDF files generated from their corresponding HTML files in swig/www?

Besides, I wonder what is the relation between the following two contents?

Migrate from sourceforge.net to GitHub (ghcr.io or raw.githubusercontent.com)

Sourceforge.net and its mirrors currently host the swig brew formula and packages. Unfortunately, many organizations are blocking any downloads from sourceforge.net given various security concerns with the practices in that platform.

Many other packages and brew formula (especially) have migrated to the GitHub container registry (ghcr.io) or accessing the raw files directly from GitHub via raw.githubusercontent.com. Both of these options appear to be an industry trend with greater trust of the content. Please consider migrating where the swig package and formulae can be downloaded from Sourceforge to GitHub.

broken link

The page
http://www.swig.org/tutorial.html
has a link to
http://www.southern-storm.com.au/portable_net.html
but that page does no longer contain any helpful content.

(Link as code, because I did not want to link there again).

Please lock sourceforge trackers against creating new tickets

We've had a few tickets created in the SF trackers since switching to github, which isn't a good experience for users as nobody is regularly checking them (I've only noticed because I've been checking the old issues to close duplicates and those fixed since, and to actually address the low-hanging fruit.

In particular we've had two this week - I closed one as already fixed and the other with instructions to report to github instead, but it's not a good use of my time.

@wsfulton Can you remove "User Permission" to "create" from "Authenticated"? Or give me (I'm "olly" there) Admin rights so I can?

Failed to run 'python3 makeweb.py'

Problem Description

Hello, Swig Development Team.

Recently, I tried to run python3 makeweb.py to build a complete website locally. However, it failed with the following error messages. What happened?

Traceback (most recent call last):
  File "/media/hwhsu1231/Data/Test/www/makeweb.py", line 121, in <module>
    html_string = subprocess.check_output(["php", php_filename])
  File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 503, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'php'

The following is the full logs:

Click to expand full logs
hwhsu1231@vb-kubuntu:/media/hwhsu1231/Data/Test$ git clone https://github.com/swig/www.git
Cloning into 'www'...
remote: Enumerating objects: 2683, done.
remote: Counting objects: 100% (145/145), done.
remote: Compressing objects: 100% (108/108), done.
remote: Total 2683 (delta 53), reused 107 (delta 36), pack-reused 2538
Receiving objects: 100% (2683/2683), 62.39 MiB | 2.53 MiB/s, done.
Resolving deltas: 100% (1749/1749), done.
hwhsu1231@vb-kubuntu:/media/hwhsu1231/Data/Test$ cd www
hwhsu1231@vb-kubuntu:/media/hwhsu1231/Data/Test/www$ python makeweb.py
Command 'python' not found, did you mean:
  command 'python3' from deb python3
  command 'python' from deb python-is-python3
hwhsu1231@vb-kubuntu:/media/hwhsu1231/Data/Test/www$ which python
hwhsu1231@vb-kubuntu:/media/hwhsu1231/Data/Test/www$ which python3
/usr/bin/python3
hwhsu1231@vb-kubuntu:/media/hwhsu1231/Data/Test/www$ python3 makeweb.py
Wrote donate.html
Wrote download.html
Wrote exec.html
Wrote faq.html
Wrote future.html
Wrote guilty.html
Wrote history.html
Wrote legal.html
Wrote links.html
Wrote mail.html
Wrote myths.html
Wrote nsf.html
Wrote projects.html
Wrote propaganda.html
Wrote rants.html
Wrote release.html
Wrote screenshot.html
Wrote screenshot2.html
Wrote survey.html
Wrote surveyresults.html
Wrote svn.html
Wrote tutorial.html
Wrote y2k.html
Wrote article_cpp.html
Wrote bugs.html
Wrote compare.html
Wrote compat.html
Wrote cpp.html
Wrote doc.html
Wrote news.php
Traceback (most recent call last):
  File "/media/hwhsu1231/Data/Test/www/makeweb.py", line 121, in <module>
    html_string = subprocess.check_output(["php", php_filename])
  File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 503, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'php'
hwhsu1231@vb-kubuntu:/media/hwhsu1231/Data/Test/www$

google-ability

Googling anything about SWIG almost invariably leads you to ancient documentation from version 1.3... example screenshot attached. It would be nice if something could be done to move more recent documentation to the top of google searches...

screen shot 2015-06-05 at 10 19 07 am

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.