feat: add buildmanual target, faker demo, subprocess examples, and contributing sidebar to manual

Add Makefile buildmanual target for manual generation and include faker_demo.wren, subprocess_async_demo.wren, subprocess_concurrent_demo.wren, and subprocess_fiber_demo.wren example scripts. Update manual sidebar across api pages to link new web-server tutorial and contributing section with module architecture, pure-wren/c-backed modules, foreign classes, async patterns, testing, and documentation pages.
This commit is contained in:
2026-01-25 18:02:02 +00:00
parent 819bbd5091
commit 5c2269f6a7
92 changed files with 10955 additions and 621 deletions
+63
View File
@@ -0,0 +1,63 @@
// retoor <retoor@molodetz.nl>
import "faker" for Faker
var name = Faker.name()
System.print(name.contains(" ")) // expect: true
var email = Faker.email()
System.print(email.contains("@")) // expect: true
var firstName = Faker.firstName()
System.print(firstName.count > 0) // expect: true
var lastName = Faker.lastName()
System.print(lastName.count > 0) // expect: true
var city = Faker.city()
System.print(city.count > 0) // expect: true
var address = Faker.address()
System.print(address.contains(",")) // expect: true
var ipv4 = Faker.ipv4()
System.print(ipv4.contains(".")) // expect: true
var uuid = Faker.uuid()
System.print(uuid.count == 36) // expect: true
var phone = Faker.phoneNumber()
System.print(phone.contains("(")) // expect: true
var company = Faker.company()
System.print(company.count > 0) // expect: true
var job = Faker.jobTitle()
System.print(job.count > 0) // expect: true
var word = Faker.word()
System.print(word.count > 0) // expect: true
var sentence = Faker.sentence()
System.print(sentence.endsWith(".")) // expect: true
var hexColor = Faker.hexColor()
System.print(hexColor.startsWith("#")) // expect: true
System.print(hexColor.count == 7) // expect: true
var price = Faker.price()
System.print(price >= 1) // expect: true
System.print(price <= 1000) // expect: true
var bool1 = Faker.boolean()
System.print(bool1 is Bool) // expect: true
var digits = Faker.numerify("###-##-####")
System.print(digits.count == 11) // expect: true
System.print(digits[3] == "-") // expect: true
var letters = Faker.letterify("???-???")
System.print(letters.count == 7) // expect: true
System.print(letters[3] == "-") // expect: true
System.print("All basic tests passed") // expect: All basic tests passed
+28
View File
@@ -0,0 +1,28 @@
// retoor <retoor@molodetz.nl>
import "faker" for Faker
Faker.seed(12345)
var name1 = Faker.name()
var email1 = Faker.email()
var city1 = Faker.city()
var int1 = Faker.randomInt(1, 100)
Faker.seed(12345)
var name2 = Faker.name()
var email2 = Faker.email()
var city2 = Faker.city()
var int2 = Faker.randomInt(1, 100)
System.print(name1 == name2) // expect: true
System.print(email1 == email2) // expect: true
System.print(city1 == city2) // expect: true
System.print(int1 == int2) // expect: true
Faker.seed(99999)
var name3 = Faker.name()
System.print(name1 != name3) // expect: true
Faker.reset()
System.print("Seeding tests passed") // expect: Seeding tests passed